C# Class Box2DX.Dynamics.LineJoint

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

Méthodes publiques

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

Méthodes publiques

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

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

GetJointSpeed() public méthode

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

GetJointTranslation() public méthode

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

GetLowerLimit() public méthode

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

GetMotorForce() public méthode

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

GetMotorSpeed() public méthode

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

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

GetUpperLimit() public méthode

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

IsLimitEnabled() public méthode

Is the joint limit enabled?
public IsLimitEnabled ( ) : bool
Résultat bool

IsMotorEnabled() public méthode

Is the joint motor enabled?
public IsMotorEnabled ( ) : bool
Résultat bool

LineJoint() public méthode

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

SetMotorSpeed() public méthode

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

Property Details

_K public_oe property

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

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

_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

_s1 public_oe property

public float _s1
Résultat float

_upperTranslation public_oe property

public float _upperTranslation
Résultat float