public abstract class Joint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
addr
the address of the joint
|
protected JointEdge |
jointEdgeA
joint edge a
|
protected JointEdge |
jointEdgeB
joint edge b
|
Modifier | Constructor and Description |
---|---|
protected |
Joint(World world,
long addr)
Constructs a new joint
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.Object |
getUserData()
Get the user data
|
boolean |
isActive()
Short-cut function to determine if either body is inactive.
|
void |
setUserData(java.lang.Object userData)
Set the user data
|
protected long addr
protected JointEdge jointEdgeA
protected JointEdge jointEdgeB
protected Joint(World world, long addr)
addr
- the address of the jointpublic 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 java.lang.Object getUserData()
public void setUserData(java.lang.Object userData)
public boolean isActive()