org.jbox2d.p5
Class PhysicsUtils

java.lang.Object
  extended by org.jbox2d.p5.PhysicsUtils

public class PhysicsUtils
extends java.lang.Object


Constructor Summary
PhysicsUtils()
           
 
Method Summary
static float angle(org.jbox2d.common.Vec2 a)
          Returns the clockwise angle of vector A, relative to the horizontal.
static float angle(org.jbox2d.common.Vec2 a, org.jbox2d.common.Vec2 b)
          Returns the clockwise angle from vector A to vector B.
static org.jbox2d.dynamics.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
 

Constructor Detail

PhysicsUtils

public PhysicsUtils()
Method Detail

newBodyDef

public static org.jbox2d.dynamics.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(org.jbox2d.common.Vec2 a,
                          org.jbox2d.common.Vec2 b)
Returns the clockwise angle from vector A to vector B.

Parameters:
a -
b -
Returns:

angle

public static float angle(org.jbox2d.common.Vec2 a)
Returns the clockwise angle of vector A, relative to the horizontal.

Parameters:
a -
Returns: