org.jbox2d.collision.shapes
Class CircleDef
java.lang.Object
org.jbox2d.collision.shapes.ShapeDef
org.jbox2d.collision.shapes.CircleDef
public class CircleDef
- extends ShapeDef
A circle shape definition. Set the radius and localPosition
( (0,0) by default ), and then call Body.createShape(ShapeDef)
to add the shape to a body.
Constructor Summary |
CircleDef()
creates a circle definition at (0,0) with a radius of 1. |
CircleDef(Vec2 argVec)
creates the circle definition at the given point with
a radius of 1 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
radius
public float radius
localPosition
public Vec2 localPosition
CircleDef
public CircleDef()
- creates a circle definition at (0,0) with a radius of 1.
CircleDef
public CircleDef(Vec2 argVec)
- creates the circle definition at the given point with
a radius of 1
- Parameters:
argVec
-