C# Class Box2DX.Dynamics.RevoluteJoint

Inheritance: Joint
Show file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
_enableLimit bool
_enableMotor bool
_impulse Vec3
_limitState LimitState
_localAnchor1 Vec2
_localAnchor2 Vec2
_lowerAngle float
_mass Mat33
_maxMotorTorque float
_motorImpulse float
_motorMass float
_motorSpeed float
_referenceAngle float
_upperAngle float

Public Methods

Method Description
EnableLimit ( bool flag ) : void

Enable/disable the joint limit.

EnableMotor ( bool flag ) : void

Enable/disable the joint motor.

GetReactionForce ( float inv_dt ) : Vec2
GetReactionTorque ( float inv_dt ) : float
RevoluteJoint ( RevoluteJointDef def ) : System
SetLimits ( float lower, float upper ) : void

Set the joint limits in radians.

SetMaxMotorTorque ( float torque ) : void

Set the maximum motor torque, usually in N-m.

Private Methods

Method Description
InitVelocityConstraints ( TimeStep step ) : void
SolvePositionConstraints ( float baumgarte ) : bool
SolveVelocityConstraints ( TimeStep step ) : void

Method Details

EnableLimit() public method

Enable/disable the joint limit.
public EnableLimit ( bool flag ) : void
flag bool
return void

EnableMotor() public method

Enable/disable the joint motor.
public EnableMotor ( bool flag ) : void
flag bool
return void

GetReactionForce() public method

public GetReactionForce ( float inv_dt ) : Vec2
inv_dt float
return Box2DX.Common.Vec2

GetReactionTorque() public method

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
return float

RevoluteJoint() public method

public RevoluteJoint ( RevoluteJointDef def ) : System
def RevoluteJointDef
return System

SetLimits() public method

Set the joint limits in radians.
public SetLimits ( float lower, float upper ) : void
lower float
upper float
return void

SetMaxMotorTorque() public method

Set the maximum motor torque, usually in N-m.
public SetMaxMotorTorque ( float torque ) : void
torque float
return void

Property Details

_enableLimit public property

public bool _enableLimit
return bool

_enableMotor public property

public bool _enableMotor
return bool

_impulse public property

public Vec3 _impulse
return Vec3

_limitState public property

public LimitState _limitState
return LimitState

_localAnchor1 public property

public Vec2 _localAnchor1
return Vec2

_localAnchor2 public property

public Vec2 _localAnchor2
return Vec2

_lowerAngle public property

public float _lowerAngle
return float

_mass public property

public Mat33 _mass
return Mat33

_maxMotorTorque public property

public float _maxMotorTorque
return float

_motorImpulse public property

public float _motorImpulse
return float

_motorMass public property

public float _motorMass
return float

_motorSpeed public property

public float _motorSpeed
return float

_referenceAngle public property

public float _referenceAngle
return float

_upperAngle public property

public float _upperAngle
return float