|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.dynamics.joints.Joint
org.jbox2d.dynamics.joints.MouseJoint
public class MouseJoint
Field Summary | |
---|---|
float |
m_beta
|
Vec2 |
m_C
|
Vec2 |
m_force
|
float |
m_gamma
|
Vec2 |
m_localAnchor
|
Mat22 |
m_mass
|
float |
m_maxForce
|
Vec2 |
m_target
|
Fields inherited from class org.jbox2d.dynamics.joints.Joint |
---|
m_body1, m_body2, m_collideConnected, m_islandFlag, m_next, m_node1, m_node2, m_prev, m_type, m_userData |
Constructor Summary | |
---|---|
MouseJoint(MouseJointDef def)
|
Method Summary | |
---|---|
Vec2 |
getAnchor1()
Get the anchor point on body1 in world coordinates. |
Vec2 |
getAnchor2()
Get the anchor point on body2 in world coordinates. |
Vec2 |
getReactionForce()
Get the reaction force on body2 at the joint anchor. |
float |
getReactionTorque()
Get the reaction torque on body2. |
void |
initVelocityConstraints(TimeStep step)
|
void |
setTarget(Vec2 target)
Use this to update the target point. |
boolean |
solvePositionConstraints()
This returns true if the position errors are within tolerance. |
void |
solveVelocityConstraints(TimeStep step)
|
Methods inherited from class org.jbox2d.dynamics.joints.Joint |
---|
create, destroy, destructor, getBody1, getBody2, getNext, getType, getUserData, initPositionConstraints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Vec2 m_localAnchor
public Vec2 m_target
public Vec2 m_force
public Mat22 m_mass
public Vec2 m_C
public float m_maxForce
public float m_beta
public float m_gamma
Constructor Detail |
---|
public MouseJoint(MouseJointDef def)
Method Detail |
---|
public void setTarget(Vec2 target)
public Vec2 getAnchor1()
Joint
getAnchor1
in class Joint
public Vec2 getAnchor2()
Joint
getAnchor2
in class Joint
public void initVelocityConstraints(TimeStep step)
initVelocityConstraints
in class Joint
public boolean solvePositionConstraints()
Joint
solvePositionConstraints
in class Joint
public void solveVelocityConstraints(TimeStep step)
solveVelocityConstraints
in class Joint
public Vec2 getReactionForce()
Joint
getReactionForce
in class Joint
public float getReactionTorque()
Joint
getReactionTorque
in class Joint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |