Skip to main content

b2PrismaticJoint

b2PrismaticJoint

Box2D.Dynamics.Joints

Inheritance: 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.b2Vec2
Example

GetAnchorB()

Box2D.Common.b2Vec2 GetAnchorB()()
Returns:
Box2D.Common.b2Vec2
Example

GetJointSpeed()

System.Single GetJointSpeed()()
Returns:
System.Single

GetJointTranslation()

System.Single GetJointTranslation()()
Returns:
System.Single

GetLocalAnchorA()

Box2D.Common.b2Vec2 GetLocalAnchorA()()
Returns:
Box2D.Common.b2Vec2
Example

GetLocalAnchorB()

Box2D.Common.b2Vec2 GetLocalAnchorB()()
Returns:
Box2D.Common.b2Vec2
Example

GetLocalAxisA()

Box2D.Common.b2Vec2 GetLocalAxisA()()
Returns:
Box2D.Common.b2Vec2
Example

GetLocalXAxisA()

Box2D.Common.b2Vec2 GetLocalXAxisA()()
Returns:
Box2D.Common.b2Vec2

GetLowerLimit()

System.Single GetLowerLimit()()
Returns:
System.Single

GetMaxMotorForce()

System.Single GetMaxMotorForce()()
Returns:
System.Single

GetMotorForce(float)

System.Single GetMotorForce(float)(System.Single inv_dt)
Parameters:
inv_dt (System.Single)
Returns:
System.Single

GetMotorSpeed()

System.Single GetMotorSpeed()()
Returns:
System.Single

GetReactionForce(float)

Box2D.Common.b2Vec2 GetReactionForce(float)(System.Single inv_dt)
Parameters:
inv_dt (System.Single)
Returns:
Box2D.Common.b2Vec2

GetReactionTorque(float)

System.Single GetReactionTorque(float)(System.Single inv_dt)
Parameters:
inv_dt (System.Single)
Returns:
System.Single

GetReferenceAngle()

System.Single GetReferenceAngle()()
Returns:
System.Single
Example

GetUpperLimit()

System.Single GetUpperLimit()()
Returns:
System.Single

InitVelocityConstraints(b2SolverData)

InitVelocityConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)
Parameters:
data (Box2D.Dynamics.b2SolverData)
Example

IsLimitEnabled()

System.Boolean IsLimitEnabled()()
Returns:
System.Boolean

IsMotorEnabled()

System.Boolean IsMotorEnabled()()
Returns:
System.Boolean

SetLimits(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.Boolean
Example

SolveVelocityConstraints(b2SolverData)

SolveVelocityConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)
Parameters:
data (Box2D.Dynamics.b2SolverData)
Example