Search in sources :

Example 11 with CircleShape

use of spacegraph.space2d.phys.collision.shapes.CircleShape in project narchy by automenta.

the class CircleEntity method getCircleShape.

/**
 * @return Circle shape with given radius
 */
private static CircleShape getCircleShape(float radius) {
    CircleShape circ = new CircleShape();
    circ.setRadius(radius);
    return circ;
}
Also used : CircleShape(spacegraph.space2d.phys.collision.shapes.CircleShape)

Aggregations

CircleShape (spacegraph.space2d.phys.collision.shapes.CircleShape)11 PolygonShape (spacegraph.space2d.phys.collision.shapes.PolygonShape)7 spacegraph.util.math.v2 (spacegraph.util.math.v2)7 EdgeShape (spacegraph.space2d.phys.collision.shapes.EdgeShape)3 Shape (spacegraph.space2d.phys.collision.shapes.Shape)3 Tuple2f (spacegraph.util.math.Tuple2f)3 FasterList (jcog.list.FasterList)2 Vec2 (spacegraph.space2d.phys.common.Vec2)2 Body2D (spacegraph.space2d.phys.dynamics.Body2D)2 BodyDef (spacegraph.space2d.phys.dynamics.BodyDef)2 RevoluteJoint (spacegraph.space2d.phys.dynamics.joints.RevoluteJoint)2 RevoluteJointDef (spacegraph.space2d.phys.dynamics.joints.RevoluteJointDef)2 PolygonFixture (spacegraph.space2d.phys.fracture.PolygonFixture)2 MyList (spacegraph.space2d.phys.fracture.util.MyList)2 ParticleGroupDef (spacegraph.space2d.phys.particle.ParticleGroupDef)2 Random (java.util.Random)1 Consumer (java.util.function.Consumer)1 Loop (jcog.exe.Loop)1 HaiQae (jcog.learn.ql.HaiQae)1 FloatRange (jcog.math.FloatRange)1