b2RevoluteJoint
b2RevoluteJoint
Box2D.Dynamics.JointsInheritance: 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.b2Vec2Example
GetAnchorB()
Box2D.Common.b2Vec2 GetAnchorB()()Returns:
Box2D.Common.b2Vec2Example
GetJointAngle()
System.Single GetJointAngle()()Returns:
System.SingleGetJointSpeed()
System.Single GetJointSpeed()()Returns:
System.SingleGetLocalAnchorA()
Box2D.Common.b2Vec2 GetLocalAnchorA()()Returns:
Box2D.Common.b2Vec2Example
GetLocalAnchorB()
Box2D.Common.b2Vec2 GetLocalAnchorB()()Returns:
Box2D.Common.b2Vec2Example
GetLowerLimit()
System.Single GetLowerLimit()()Returns:
System.SingleGetMaxMotorTorque()
System.Single GetMaxMotorTorque()()Returns:
System.SingleGetMotorSpeed()
System.Single GetMotorSpeed()()Returns:
System.SingleGetMotorTorque(float)
System.Single GetMotorTorque(float)(System.Single inv_dt)Parameters:
inv_dt (System.Single)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)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.BooleanExample
SolveVelocityConstraints(b2SolverData)
SolveVelocityConstraints(b2SolverData)(Box2D.Dynamics.b2SolverData data)Parameters:
data (Box2D.Dynamics.b2SolverData)Example