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
ファイルを表示 Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property 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

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
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

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

PrismaticJoint() public method

public PrismaticJoint ( PrismaticJointDef def ) : System
def PrismaticJointDef
return System

SetLimits() public method

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

SetMaxMotorForce() public method

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

Property Details

_K public_oe property

public Mat33,Box2DX.Common _K
return Box2DX.Common.Mat33

_a1 public_oe property

public float _a1
return float

_axis public_oe property

public Vec2,Box2DX.Common _axis
return Box2DX.Common.Vec2

_enableLimit public_oe property

public bool _enableLimit
return bool

_enableMotor public_oe property

public bool _enableMotor
return bool

_impulse public_oe property

public Vec3,Box2DX.Common _impulse
return Box2DX.Common.Vec3

_limitState public_oe property

public LimitState _limitState
return LimitState

_localAnchor1 public_oe property

public Vec2,Box2DX.Common _localAnchor1
return Box2DX.Common.Vec2

_localAnchor2 public_oe property

public Vec2,Box2DX.Common _localAnchor2
return Box2DX.Common.Vec2

_localXAxis1 public_oe property

public Vec2,Box2DX.Common _localXAxis1
return Box2DX.Common.Vec2

_localYAxis1 public_oe property

public Vec2,Box2DX.Common _localYAxis1
return Box2DX.Common.Vec2

_lowerTranslation public_oe property

public float _lowerTranslation
return float

_maxMotorForce public_oe property

public float _maxMotorForce
return float

_motorImpulse public_oe property

public float _motorImpulse
return float

_motorMass public_oe property

public float _motorMass
return float

_motorSpeed public_oe property

public float _motorSpeed
return float

_refAngle public_oe property

public float _refAngle
return float

_s1 public_oe property

public float _s1
return float

_upperTranslation public_oe property

public float _upperTranslation
return float