| Modifier and Type | Field and Description |
|---|---|
| protected long | addr
the address of the joint |
| private final Vector2 | anchorA
Get the anchor point on bodyA in world coordinates. |
| private final Vector2 | anchorB
Get the anchor point on bodyB in world coordinates. |
| protected JointEdge | jointEdgeA
joint edge a |
| protected JointEdge | jointEdgeB
joint edge b |
| private final Vector2 | reactionForce
Get the reaction force on body2 at the joint anchor in Newtons. |
| private final float[] | tmp
temporary float array |
| private Object | userData
user data |
| private final World | world
world |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Vector2 | |
| public Vector2 | |
| public Body | |
| public Body | |
| public boolean | |
| public Vector2 | |
| public float | |
| public JointDef. | |
| public Object | |
| public boolean | |
| private native void | |
| private native void | |
| private native long | |
| private native long | |
| private native boolean | |
| private native void | |
| private native float | |
| private native int | |
| private native boolean | |
| public void |
| addr | back to summary |
|---|---|
| protected long addr the address of the joint | |
| anchorA | back to summary |
|---|---|
| private final Vector2 anchorA Get the anchor point on bodyA in world coordinates. | |
| anchorB | back to summary |
|---|---|
| private final Vector2 anchorB Get the anchor point on bodyB in world coordinates. | |
| jointEdgeA | back to summary |
|---|---|
| protected JointEdge jointEdgeA joint edge a | |
| jointEdgeB | back to summary |
|---|---|
| protected JointEdge jointEdgeB joint edge b | |
| reactionForce | back to summary |
|---|---|
| private final Vector2 reactionForce Get the reaction force on body2 at the joint anchor in Newtons. | |
| tmp | back to summary |
|---|---|
| private final float[] tmp temporary float array | |
| userData | back to summary |
|---|---|
| private Object userData user data | |
| world | back to summary |
|---|---|
| private final World world world | |
| Joint | back to summary |
|---|---|
| protected Joint(World world, long addr) Constructs a new joint
| |
| getAnchorA | back to summary |
|---|---|
| public Vector2 getAnchorA() | |
| getAnchorB | back to summary |
|---|---|
| public Vector2 getAnchorB() | |
| getBodyA | back to summary |
|---|---|
| public Body getBodyA() Get the first body attached to this joint. | |
| getBodyB | back to summary |
|---|---|
| public Body getBodyB() Get the second body attached to this joint. | |
| getCollideConnected | back to summary |
|---|---|
| public boolean getCollideConnected() | |
| getReactionForce | back to summary |
|---|---|
| public Vector2 getReactionForce(float inv_dt) | |
| getReactionTorque | back to summary |
|---|---|
| public float getReactionTorque(float inv_dt) Get the reaction torque on body2 in N*m. | |
| getType | back to summary |
|---|---|
| public JointDef. Get the type of the concrete joint. | |
| getUserData | back to summary |
|---|---|
| public Object getUserData() Get the user data | |
| isActive | back to summary |
|---|---|
| public boolean isActive() Short-cut function to determine if either body is inactive. | |
| jniGetAnchorA | back to summary |
|---|---|
| private native void jniGetAnchorA(long addr, float[] anchorA) | |
| jniGetAnchorB | back to summary |
|---|---|
| private native void jniGetAnchorB(long addr, float[] anchorB) | |
| jniGetBodyA | back to summary |
|---|---|
| private native long jniGetBodyA(long addr) | |
| jniGetBodyB | back to summary |
|---|---|
| private native long jniGetBodyB(long addr) | |
| jniGetCollideConnected | back to summary |
|---|---|
| private native boolean jniGetCollideConnected(long addr) | |
| jniGetReactionForce | back to summary |
|---|---|
| private native void jniGetReactionForce(long addr, float inv_dt, float[] reactionForce) | |
| jniGetReactionTorque | back to summary |
|---|---|
| private native float jniGetReactionTorque(long addr, float inv_dt) | |
| jniGetType | back to summary |
|---|---|
| private native int jniGetType(long addr) | |
| jniIsActive | back to summary |
|---|---|
| private native boolean jniIsActive(long addr) | |
| setUserData | back to summary |
|---|---|
| public void setUserData(Object userData) Set the user data | |