|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.dynamics.joints.Joint
public abstract class Joint
The base joint class. Joints are used to raint two bodies together in various fashions. Some joints also feature limits and motors.
Field Summary | |
---|---|
Body |
m_bodyA
|
Body |
m_bodyB
|
boolean |
m_collideConnected
|
JointEdge |
m_edgeA
|
JointEdge |
m_edgeB
|
int |
m_index
|
boolean |
m_islandFlag
|
Joint |
m_next
|
Joint |
m_prev
|
JointType |
m_type
|
java.lang.Object |
m_userData
|
protected IWorldPool |
pool
|
Constructor Summary | |
---|---|
protected |
Joint(IWorldPool argWorldPool,
JointDef def)
|
Method Summary | |
---|---|
static Joint |
create(World argWorld,
JointDef def)
|
static void |
destroy(Joint joint)
|
void |
destructor()
Override to handle destruction of joint |
abstract void |
getAnchorA(Vec2 argOut)
get the anchor point on bodyA in world coordinates. |
abstract void |
getAnchorB(Vec2 argOut)
get the anchor point on bodyB in world coordinates. |
Body |
getBodyA()
get the first body attached to this joint. |
Body |
getBodyB()
get the second body attached to this joint. |
boolean |
getCollideConnected()
|
Joint |
getNext()
get the next joint the world joint list. |
abstract void |
getReactionForce(float inv_dt,
Vec2 argOut)
get the reaction force on body2 at the joint anchor in Newtons. |
abstract float |
getReactionTorque(float inv_dt)
get the reaction torque on body2 in N*m. |
JointType |
getType()
get the type of the concrete joint. |
java.lang.Object |
getUserData()
get the user data pointer. |
abstract void |
initVelocityConstraints(SolverData data)
|
boolean |
IsActive()
Short-cut function to determine if either body is inactive. |
void |
setUserData(java.lang.Object data)
Set the user data pointer. |
abstract boolean |
solvePositionConstraints(SolverData data)
This returns true if the position errors are within tolerance. |
abstract void |
solveVelocityConstraints(SolverData data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public JointType m_type
public Joint m_prev
public Joint m_next
public JointEdge m_edgeA
public JointEdge m_edgeB
public Body m_bodyA
public Body m_bodyB
public int m_index
public boolean m_islandFlag
public boolean m_collideConnected
public java.lang.Object m_userData
protected IWorldPool pool
Constructor Detail |
---|
protected Joint(IWorldPool argWorldPool, JointDef def)
Method Detail |
---|
public static Joint create(World argWorld, JointDef def)
public static void destroy(Joint joint)
public JointType getType()
public Body getBodyA()
public Body getBodyB()
public abstract void getAnchorA(Vec2 argOut)
public abstract void getAnchorB(Vec2 argOut)
public abstract void getReactionForce(float inv_dt, Vec2 argOut)
inv_dt
- public abstract float getReactionTorque(float inv_dt)
inv_dt
-
public Joint getNext()
public java.lang.Object getUserData()
public void setUserData(java.lang.Object data)
public boolean getCollideConnected()
public boolean IsActive()
public abstract void initVelocityConstraints(SolverData data)
public abstract void solveVelocityConstraints(SolverData data)
public abstract boolean solvePositionConstraints(SolverData data)
baumgarte
-
public void destructor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |