C# Class Box2DX.Dynamics.LineJoint

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

Public Properties

Property Type Description
_K Box2DX.Common.Mat22
_a1 float
_axis Box2DX.Common.Vec2
_enableLimit bool
_enableMotor bool
_impulse Box2DX.Common.Vec2
_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
_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.

GetJointSpeed ( ) : float

Get the current joint translation speed, usually in meters per second.

GetJointTranslation ( ) : float

Get the current joint translation, usually in meters.

GetLowerLimit ( ) : float

Get the lower joint limit, usually in meters.

GetMotorForce ( ) : float

Get the current motor force, usually in N.

GetMotorSpeed ( ) : float

Get the motor speed, usually in meters per second.

GetReactionForce ( float inv_dt ) : Vec2
GetReactionTorque ( float inv_dt ) : float
GetUpperLimit ( ) : float

Get the upper joint limit, usually in meters.

IsLimitEnabled ( ) : bool

Is the joint limit enabled?

IsMotorEnabled ( ) : bool

Is the joint motor enabled?

LineJoint ( LineJointDef 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.

SetMotorSpeed ( float speed ) : void

Set the motor speed, usually in meters per second.

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

GetJointSpeed() public method

Get the current joint translation speed, usually in meters per second.
public GetJointSpeed ( ) : float
return float

GetJointTranslation() public method

Get the current joint translation, usually in meters.
public GetJointTranslation ( ) : float
return float

GetLowerLimit() public method

Get the lower joint limit, usually in meters.
public GetLowerLimit ( ) : float
return float

GetMotorForce() public method

Get the current motor force, usually in N.
public GetMotorForce ( ) : float
return float

GetMotorSpeed() public method

Get the motor speed, usually in meters per second.
public GetMotorSpeed ( ) : float
return float

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

GetUpperLimit() public method

Get the upper joint limit, usually in meters.
public GetUpperLimit ( ) : float
return float

IsLimitEnabled() public method

Is the joint limit enabled?
public IsLimitEnabled ( ) : bool
return bool

IsMotorEnabled() public method

Is the joint motor enabled?
public IsMotorEnabled ( ) : bool
return bool

LineJoint() public method

public LineJoint ( LineJointDef def ) : System
def LineJointDef
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

SetMotorSpeed() public method

Set the motor speed, usually in meters per second.
public SetMotorSpeed ( float speed ) : void
speed float
return void

Property Details

_K public property

public Mat22,Box2DX.Common _K
return Box2DX.Common.Mat22

_a1 public property

public float _a1
return float

_axis public property

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

_enableLimit public property

public bool _enableLimit
return bool

_enableMotor public property

public bool _enableMotor
return bool

_impulse public property

public Vec2,Box2DX.Common _impulse
return Box2DX.Common.Vec2

_limitState public property

public LimitState _limitState
return LimitState

_localAnchor1 public property

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

_localAnchor2 public property

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

_localXAxis1 public property

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

_localYAxis1 public property

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

_lowerTranslation public property

public float _lowerTranslation
return float

_maxMotorForce public property

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

_s1 public property

public float _s1
return float

_upperTranslation public property

public float _upperTranslation
return float