C# Class Box2DX.Dynamics.PrismaticJoint

A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in body1. Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction.
Inheritance: Joint
Afficher le fichier Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Méthodes publiques

Свойство Type Description
_K Box2DX.Common.Mat33
_a1 float
_axis Box2DX.Common.Vec2
_enableLimit bool
_enableMotor bool
_impulse Box2DX.Common.Vec3
_limitState LimitState
_localAnchor1 Box2DX.Common.Vec2
_localAnchor2 Box2DX.Common.Vec2
_localXAxis1 Box2DX.Common.Vec2
_localYAxis1 Box2DX.Common.Vec2
_lowerTranslation float
_maxMotorForce float
_motorImpulse float
_motorMass float
_motorSpeed float
_refAngle float
_s1 float
_upperTranslation 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
PrismaticJoint ( PrismaticJointDef def ) : System
SetLimits ( float lower, float upper ) : void

Set the joint limits, usually in meters.

SetMaxMotorForce ( float force ) : void

Set the maximum motor force, usually in N.

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

PrismaticJoint() public méthode

public PrismaticJoint ( PrismaticJointDef def ) : System
def PrismaticJointDef
Résultat System

SetLimits() public méthode

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

SetMaxMotorForce() public méthode

Set the maximum motor force, usually in N.
public SetMaxMotorForce ( float force ) : void
force float
Résultat void

Property Details

_K public_oe property

public Mat33,Box2DX.Common _K
Résultat Box2DX.Common.Mat33

_a1 public_oe property

public float _a1
Résultat float

_axis public_oe property

public Vec2,Box2DX.Common _axis
Résultat Box2DX.Common.Vec2

_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,Box2DX.Common _impulse
Résultat Box2DX.Common.Vec3

_limitState public_oe property

public LimitState _limitState
Résultat LimitState

_localAnchor1 public_oe property

public Vec2,Box2DX.Common _localAnchor1
Résultat Box2DX.Common.Vec2

_localAnchor2 public_oe property

public Vec2,Box2DX.Common _localAnchor2
Résultat Box2DX.Common.Vec2

_localXAxis1 public_oe property

public Vec2,Box2DX.Common _localXAxis1
Résultat Box2DX.Common.Vec2

_localYAxis1 public_oe property

public Vec2,Box2DX.Common _localYAxis1
Résultat Box2DX.Common.Vec2

_lowerTranslation public_oe property

public float _lowerTranslation
Résultat float

_maxMotorForce public_oe property

public float _maxMotorForce
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

_refAngle public_oe property

public float _refAngle
Résultat float

_s1 public_oe property

public float _s1
Résultat float

_upperTranslation public_oe property

public float _upperTranslation
Résultat float