public abstract class Joint extends Object
| 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.
|
boolean |
getCollideConnected() |
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.
|
Object |
getUserData()
Get the user data
|
boolean |
isActive()
Short-cut function to determine if either body is inactive.
|
void |
setUserData(Object userData)
Set the user data
|
public JointDef.JointType getType()
public Body getBodyA()
public Body getBodyB()
public Vector2 getAnchorA()
public Vector2 getAnchorB()
public boolean getCollideConnected()
public Vector2 getReactionForce(float inv_dt)
public float getReactionTorque(float inv_dt)
public Object getUserData()
public void setUserData(Object userData)
public boolean isActive()
Copyright © 2016. All rights reserved.