C# Class Box2DX.Dynamics.MouseJoint

A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces.
Inheritance: Joint
Afficher le fichier Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Méthodes publiques

Свойство Type Description
_C Box2DX.Common.Vec2
_beta float
_dampingRatio float
_frequencyHz float
_gamma float
_impulse Box2DX.Common.Vec2
_localAnchor Box2DX.Common.Vec2
_mass Box2DX.Common.Mat22
_maxForce float
_target Box2DX.Common.Vec2

Méthodes publiques

Méthode Description
GetReactionForce ( float inv_dt ) : Vec2
GetReactionTorque ( float inv_dt ) : float
MouseJoint ( MouseJointDef def ) : System
SetTarget ( Vec2 target ) : void

Use this to update the target point.

Private Methods

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

Method Details

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

MouseJoint() public méthode

public MouseJoint ( MouseJointDef def ) : System
def MouseJointDef
Résultat System

SetTarget() public méthode

Use this to update the target point.
public SetTarget ( Vec2 target ) : void
target Box2DX.Common.Vec2
Résultat void

Property Details

_C public_oe property

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

_beta public_oe property

public float _beta
Résultat float

_dampingRatio public_oe property

public float _dampingRatio
Résultat float

_frequencyHz public_oe property

public float _frequencyHz
Résultat float

_gamma public_oe property

public float _gamma
Résultat float

_impulse public_oe property

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

_localAnchor public_oe property

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

_mass public_oe property

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

_maxForce public_oe property

public float _maxForce
Résultat float

_target public_oe property

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