Skip to main content

b2RevoluteJoint

b2RevoluteJoint

Box2D.Dynamics.Joints

Inheritance: System.Object → Box2D.Dynamics.Joints.b2Joint

Constructors

b2RevoluteJoint(b2RevoluteJointDef)

b2RevoluteJoint(b2RevoluteJointDef)(Box2D.Dynamics.Joints.b2RevoluteJointDef def)
Parameters:
def (Box2D.Dynamics.Joints.b2RevoluteJointDef)

Fields

m_enableLimit(System.Boolean)
m_enableMotor(System.Boolean)
m_impulse(Box2D.Common.b2Vec3)
m_indexA(System.Int32)
m_indexB(System.Int32)
m_invIA(System.Single)
m_invIB(System.Single)
m_invMassA(System.Single)
m_invMassB(System.Single)
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_lowerAngle(System.Single)
m_mass(Box2D.Common.b2Mat33)
m_maxMotorTorque(System.Single)
m_motorImpulse(System.Single)
m_motorMass(System.Single)
m_motorSpeed(System.Single)
m_rA(Box2D.Common.b2Vec2)
m_rB(Box2D.Common.b2Vec2)
m_referenceAngle(System.Single)
m_upperAngle(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

GetJointAngle()

System.Single GetJointAngle()()
Returns:
System.Single

GetJointSpeed()

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

GetLocalAnchorA()

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

GetLocalAnchorB()

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

GetLowerLimit()

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

GetMaxMotorTorque()

System.Single GetMaxMotorTorque()()
Returns:
System.Single

GetMotorSpeed()

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

GetMotorTorque(float)

System.Single GetMotorTorque(float)(System.Single inv_dt)
Parameters:
inv_dt (System.Single)
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)

SetMaxMotorTorque(float)

SetMaxMotorTorque(float)(System.Single torque)
Parameters:
torque (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