b2PrismaticJoint
b2PrismaticJoint
Box2D.Dynamics.JointsInheritance: System.Object → Box2D.Dynamics.Joints.b2Joint
Constructors
b2PrismaticJoint(b2PrismaticJointDef)
b2PrismaticJoint(b2PrismaticJointDef)(Box2D.Dynamics.Joints.b2PrismaticJointDef def)Parameters:
def (Box2D.Dynamics.Joints.b2PrismaticJointDef)Fields
InvertedIA(System.Single)
InvertedIB(System.Single)
InvertedMassA(System.Single)
InvertedMassB(System.Single)
m_K(Box2D.Common.b2Mat33)
m_a1(System.Single)
m_a2(System.Single)
m_axis(Box2D.Common.b2Vec2)
m_enableLimit(System.Boolean)
m_enableMotor(System.Boolean)
m_impulse(Box2D.Common.b2Vec3)
m_indexA(System.Int32)
m_indexB(System.Int32)
m_limitState(Box2D.Dynamics.Joints.b2LimitState)
m_localAnchorA(Box2D.Common.b2Vec2)
m_localAnchorB(Box2D.Common.b2Vec2)
m_localCenterA(Box2D.Common.b2Vec2)
m_localCenterB(Box2D.Common.b2Vec2)
m_localXAxisA(Box2D.Common.b2Vec2)
m_localYAxisA(Box2D.Common.b2Vec2)
m_lowerTranslation(System.Single)
m_maxMotorForce(System.Single)
m_motorImpulse(System.Single)
m_motorMass(System.Single)
m_motorSpeed(System.Single)
m_perp(Box2D.Common.b2Vec2)
m_referenceAngle(System.Single)
m_s1(System.Single)
m_s2(System.Single)
m_upperTranslation(System.Single)
Methods
Dump()
Dump()()Example
EnableLimit(bool)
EnableLimit(bool)(System.Boolean flag)Parameters:
flag (System.Boolean)EnableMotor(bool)
EnableMotor(bool)(System.Boolean flag)Parameters:
flag (System.Boolean)GetAnchorA()
Box2D.Common.b2Vec2 GetAnchorA()()Returns:
Box2D.Common.b2Vec2Example
GetAnchorB()
Box2D.Common.b2Vec2 GetAnchorB()()Returns:
Box2D.Common.b2Vec2Example
GetJointSpeed()
System.Single GetJointSpeed()()Returns:
System.SingleGetJointTranslation()
System.Single GetJointTranslation()()Returns:
System.SingleGetLocalAnchorA()
Box2D.Common.b2Vec2 GetLocalAnchorA()()Returns:
Box2D.Common.b2Vec2Example
GetLocalAnchorB()
Box2D.Common.b2Vec2 GetLocalAnchorB()()Returns:
Box2D.Common.b2Vec2Example
GetLocalAxisA()
Box2D.Common.b2Vec2 GetLocalAxisA()()Returns:
Box2D.Common.b2Vec2Example
GetLocalXAxisA()
Box2D.Common.b2Vec2 GetLocalXAxisA()()Returns:
Box2D.Common.b2Vec2GetLowerLimit()
System.Single GetLowerLimit()()Returns:
System.SingleGetMaxMotorForce()
System.Single GetMaxMotorForce()()Returns:
System.SingleGetMotorForce(float)
System.Single GetMotorForce(float)(System.Single inv_dt)Parameters:
inv_dt (System.Single)Returns:
System.SingleGetMotorSpeed()
System.Single GetMotorSpeed()()Returns:
System.SingleGetReactionForce(float)
Box2D.Common.b2Vec2 GetReactionForce(float)(System.Single inv_dt)Parameters:
inv_dt (System.Single)Returns:
Box2D.Common.b2Vec2GetReactionTorque(float)
System.Single GetReactionTorque(float)(System.Single inv_dt)Parameters:
inv_dt (System.Single)Returns:
System.SingleGetReferenceAngle()
System.Single GetReferenceAngle()()Returns:
System.SingleExample
GetUpperLimit()
System.Single GetUpperLimit()()Returns:
System.SingleInitVelocityConstraints(b2SolverData)
InitVelocityConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)Parameters:
data (Box2D.Dynamics.b2SolverData)Example
IsLimitEnabled()
System.Boolean IsLimitEnabled()()Returns:
System.BooleanIsMotorEnabled()
System.Boolean IsMotorEnabled()()Returns:
System.BooleanSetLimits(float, float)
SetLimits(float, float)(System.Single lower, System.Single upper)Parameters:
lower (System.Single)upper (System.Single)SetMaxMotorForce(float)
SetMaxMotorForce(float)(System.Single force)Parameters:
force (System.Single)SetMotorSpeed(float)
SetMotorSpeed(float)(System.Single speed)Parameters:
speed (System.Single)SolvePositionConstraints(b2SolverData)
System.Boolean SolvePositionConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)Parameters:
data (Box2D.Dynamics.b2SolverData)Returns:
System.BooleanExample
SolveVelocityConstraints(b2SolverData)
SolveVelocityConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)Parameters:
data (Box2D.Dynamics.b2SolverData)Example