Skip to main content

b2WheelJoint

b2WheelJoint

Box2D.Dynamics.Joints

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

Constructors

b2WheelJoint(b2WheelJointDef)

b2WheelJoint(b2WheelJointDef)(Box2D.Dynamics.Joints.b2WheelJointDef def)
Parameters:
def (Box2D.Dynamics.Joints.b2WheelJointDef)

Fields

m_ax(Box2D.Common.b2Vec2)
m_ay(Box2D.Common.b2Vec2)
m_bias(System.Single)
m_dampingRatio(System.Single)
m_enableMotor(System.Boolean)
m_frequencyHz(System.Single)
m_gamma(System.Single)
m_impulse(System.Single)
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_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_mass(System.Single)
m_maxMotorTorque(System.Single)
m_motorImpulse(System.Single)
m_motorMass(System.Single)
m_motorSpeed(System.Single)
m_sAx(System.Single)
m_sAy(System.Single)
m_sBx(System.Single)
m_sBy(System.Single)
m_springImpulse(System.Single)
m_springMass(System.Single)

Methods

Dump()

Dump()()
Example

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

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

GetSpringDampingRatio()

System.Single GetSpringDampingRatio()()
Returns:
System.Single

GetSpringFrequencyHz()

System.Single GetSpringFrequencyHz()()
Returns:
System.Single

InitVelocityConstraints(b2SolverData)

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

IsMotorEnabled()

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

SetMaxMotorTorque(float)

SetMaxMotorTorque(float)(System.Single torque)
Parameters:
torque (System.Single)

SetMotorSpeed(float)

SetMotorSpeed(float)(System.Single speed)
Parameters:
speed (System.Single)

SetSpringDampingRatio(float)

SetSpringDampingRatio(float)(System.Single ratio)
Parameters:
ratio (System.Single)

SetSpringFrequencyHz(float)

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