|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.physics.box2d.Joint
public abstract class Joint
Field Summary | |
---|---|
protected long |
addr
the address of the joint |
protected JointEdge |
jointEdgeA
joint edge a |
protected JointEdge |
jointEdgeB
joint edge b |
Constructor Summary | |
---|---|
protected |
Joint(World world,
long addr)
Constructs a new joint |
Method Summary | |
---|---|
Vector2 |
getAnchorA()
|
Vector2 |
getAnchorB()
|
Body |
getBodyA()
Get the first body attached to this joint. |
Body |
getBodyB()
Get the second body attached to this joint. |
Vector2 |
getReactionForce(float inv_dt)
|
float |
getReactionTorque(float inv_dt)
Get the reaction torque on body2 in N*m. |
JointDef.JointType |
getType()
Get the type of the concrete joint. |
boolean |
isActive()
Short-cut function to determine if either body is inactive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long addr
protected JointEdge jointEdgeA
protected JointEdge jointEdgeB
Constructor Detail |
---|
protected Joint(World world, long addr)
addr
- the address of the jointMethod Detail |
---|
public JointDef.JointType getType()
public Body getBodyA()
public Body getBodyB()
public Vector2 getAnchorA()
public Vector2 getAnchorB()
public Vector2 getReactionForce(float inv_dt)
public float getReactionTorque(float inv_dt)
public boolean isActive()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |