C# Class Box2DX.Dynamics.RevoluteJoint

Inheritance: Joint
Afficher le fichier Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode Description
InitVelocityConstraints ( TimeStep step ) : void
SolvePositionConstraints ( float baumgarte ) : bool
SolveVelocityConstraints ( TimeStep step ) : void

Method Details

EnableLimit() public méthode

Enable/disable the joint limit.
public EnableLimit ( bool flag ) : void
flag bool
Résultat void

EnableMotor() public méthode

Enable/disable the joint motor.
public EnableMotor ( bool flag ) : void
flag bool
Résultat void

GetReactionForce() public méthode

public GetReactionForce ( float inv_dt ) : Vec2
inv_dt float
Résultat Box2DX.Common.Vec2

GetReactionTorque() public méthode

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
Résultat float

RevoluteJoint() public méthode

public RevoluteJoint ( RevoluteJointDef def ) : System
def RevoluteJointDef
Résultat System

SetLimits() public méthode

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

SetMaxMotorTorque() public méthode

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

Property Details

_enableLimit public_oe property

public bool _enableLimit
Résultat bool

_enableMotor public_oe property

public bool _enableMotor
Résultat bool

_impulse public_oe property

public Vec3 _impulse
Résultat Vec3

_limitState public_oe property

public LimitState _limitState
Résultat LimitState

_localAnchor1 public_oe property

public Vec2 _localAnchor1
Résultat Vec2

_localAnchor2 public_oe property

public Vec2 _localAnchor2
Résultat Vec2

_lowerAngle public_oe property

public float _lowerAngle
Résultat float

_mass public_oe property

public Mat33 _mass
Résultat Mat33

_maxMotorTorque public_oe property

public float _maxMotorTorque
Résultat float

_motorImpulse public_oe property

public float _motorImpulse
Résultat float

_motorMass public_oe property

public float _motorMass
Résultat float

_motorSpeed public_oe property

public float _motorSpeed
Résultat float

_referenceAngle public_oe property

public float _referenceAngle
Résultat float

_upperAngle public_oe property

public float _upperAngle
Résultat float