org.jbox2d.p5
Class PhysicsUtils
java.lang.Object
org.jbox2d.p5.PhysicsUtils
public class PhysicsUtils
- extends Object
Method Summary |
static float |
angle(Vec2 a)
Returns the clockwise angle of vector A, relative to the horizontal. |
static float |
angle(Vec2 a,
Vec2 b)
Returns the clockwise angle from vector A to vector B. |
static BodyDef |
newBodyDef()
In case you want to do something to a body during each creation (such as add an Actor object),
you can override the PhysicsUtils class and override this method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhysicsUtils
public PhysicsUtils()
newBodyDef
public static BodyDef newBodyDef()
- In case you want to do something to a body during each creation (such as add an Actor object),
you can override the PhysicsUtils class and override this method.
- Returns:
angle
public static float angle(Vec2 a,
Vec2 b)
- Returns the clockwise angle from vector A to vector B.
- Parameters:
a
- b
-
- Returns:
angle
public static float angle(Vec2 a)
- Returns the clockwise angle of vector A, relative to the horizontal.
- Parameters:
a
-
- Returns: