|
||||||||||
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
Field Summary | |
---|---|
Body |
m_body1
|
Body |
m_body2
|
boolean |
m_collideConnected
|
boolean |
m_islandFlag
|
Joint |
m_next
|
JointEdge |
m_node1
|
JointEdge |
m_node2
|
Joint |
m_prev
|
JointType |
m_type
|
java.lang.Object |
m_userData
|
Constructor Summary | |
---|---|
Joint(JointDef description)
|
Method Summary | |
---|---|
static Joint |
create(JointDef description)
|
static void |
destroy(Joint j)
|
void |
destructor()
|
abstract Vec2 |
getAnchor1()
Get the anchor point on body1 in world coordinates. |
abstract Vec2 |
getAnchor2()
Get the anchor point on body2 in world coordinates. |
Body |
getBody1()
Get the first body attached to this joint. |
Body |
getBody2()
Get the second body attached to this joint. |
Joint |
getNext()
Get the next joint the world joint list. |
abstract Vec2 |
getReactionForce()
Get the reaction force on body2 at the joint anchor. |
abstract float |
getReactionTorque()
Get the reaction torque on body2. |
JointType |
getType()
Get the type of the concrete joint. |
java.lang.Object |
getUserData()
Get the user data pointer. |
void |
initPositionConstraints()
|
abstract void |
initVelocityConstraints(TimeStep step)
|
abstract boolean |
solvePositionConstraints()
This returns true if the position errors are within tolerance. |
abstract void |
solveVelocityConstraints(TimeStep step)
|
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_node1
public JointEdge m_node2
public Body m_body1
public Body m_body2
public boolean m_islandFlag
public boolean m_collideConnected
public java.lang.Object m_userData
Constructor Detail |
---|
public Joint(JointDef description)
Method Detail |
---|
public static void destroy(Joint j)
public void destructor()
public static Joint create(JointDef description)
public JointType getType()
public Body getBody1()
public Body getBody2()
public abstract Vec2 getAnchor1()
public abstract Vec2 getAnchor2()
public abstract Vec2 getReactionForce()
public abstract float getReactionTorque()
public Joint getNext()
public java.lang.Object getUserData()
public abstract void initVelocityConstraints(TimeStep step)
public abstract void solveVelocityConstraints(TimeStep step)
public void initPositionConstraints()
public abstract boolean solvePositionConstraints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |