Class PulleyJoint
java.lang.Object
com.codename1.gaming.physics.box2d.dynamics.joints.Joint
com.codename1.gaming.physics.box2d.dynamics.joints.PulleyJoint
-
Field Summary
FieldsFields inherited from class Joint
m_bodyA, m_bodyB, m_edgeA, m_edgeB, m_islandFlag, m_next, m_prev, m_userData, pool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAnchorA(Vec2 argOut) voidgetAnchorB(Vec2 argOut) floatfloatfloatfloatfloatfloatfloatgetRatio()voidgetReactionForce(float inv_dt, Vec2 argOut) floatgetReactionTorque(float inv_dt) voidbooleanvoidMethods inherited from class Joint
create, destroy, destructor, getBodyA, getBodyB, getCollideConnected, getNext, getType, getUserData, isActive, setUserData
-
Field Details
-
MIN_PULLEY_LENGTH
public static final float MIN_PULLEY_LENGTH- See Also:
-
-
Constructor Details
-
PulleyJoint
-
-
Method Details
-
getLengthA
public float getLengthA() -
getLengthB
public float getLengthB() -
getCurrentLengthA
public float getCurrentLengthA() -
getCurrentLengthB
public float getCurrentLengthB() -
getLocalAnchorA
-
getLocalAnchorB
-
getAnchorA
- Specified by:
getAnchorAin classJoint
-
getAnchorB
- Specified by:
getAnchorBin classJoint
-
getReactionForce
- Specified by:
getReactionForcein classJoint
-
getReactionTorque
public float getReactionTorque(float inv_dt) - Specified by:
getReactionTorquein classJoint
-
getGroundAnchorA
-
getGroundAnchorB
-
getLength1
public float getLength1() -
getLength2
public float getLength2() -
getRatio
public float getRatio() -
initVelocityConstraints
- Specified by:
initVelocityConstraintsin classJoint
-
solveVelocityConstraints
- Specified by:
solveVelocityConstraintsin classJoint
-
solvePositionConstraints
- Specified by:
solvePositionConstraintsin classJoint
-