C# Class Box2DX.Dynamics.DistanceJoint

A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.
Inheritance: Joint
Mostrar archivo Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Public Properties

Property Type Description
_bias float
_dampingRatio float
_frequencyHz float
_gamma float
_impulse float
_length float
_localAnchor1 System.Vector2
_localAnchor2 System.Vector2
_mass float
_u System.Vector2

Public Methods

Method Description
DistanceJoint ( DistanceJointDef def ) : System
GetReactionForce ( float inv_dt ) : System.Vector2
GetReactionTorque ( float inv_dt ) : float

Private Methods

Method Description
InitVelocityConstraints ( TimeStep step ) : void
SolvePositionConstraints ( float baumgarte ) : bool
SolveVelocityConstraints ( TimeStep step ) : void

Method Details

DistanceJoint() public method

public DistanceJoint ( DistanceJointDef def ) : System
def DistanceJointDef
return System

GetReactionForce() public method

public GetReactionForce ( float inv_dt ) : System.Vector2
inv_dt float
return System.Vector2

GetReactionTorque() public method

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
return float

Property Details

_bias public_oe property

public float _bias
return float

_dampingRatio public_oe property

public float _dampingRatio
return float

_frequencyHz public_oe property

public float _frequencyHz
return float

_gamma public_oe property

public float _gamma
return float

_impulse public_oe property

public float _impulse
return float

_length public_oe property

public float _length
return float

_localAnchor1 public_oe property

public Vector2,System _localAnchor1
return System.Vector2

_localAnchor2 public_oe property

public Vector2,System _localAnchor2
return System.Vector2

_mass public_oe property

public float _mass
return float

_u public_oe property

public Vector2,System _u
return System.Vector2