|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.p5.PhysicsUtils
public class PhysicsUtils
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 |
---|
public PhysicsUtils()
Method Detail |
---|
public static org.jbox2d.dynamics.BodyDef newBodyDef()
public static float angle(org.jbox2d.common.Vec2 a, org.jbox2d.common.Vec2 b)
a
- b
-
public static float angle(org.jbox2d.common.Vec2 a)
a
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |