C# Class Project290.Physics.Dynamics.Joints.AngleJoint

Maintains a fixed angle between two bodies
Inheritance: Joint
Show file Open project: scastle/Solitude Class Usage Examples

Public Properties

Property Type Description
BiasFactor float
MaxImpulse float
Softness float

Public Methods

Method Description
AngleJoint ( Body bodyA, Body bodyB ) : System
GetReactionForce ( float inv_dt ) : Vector2
GetReactionTorque ( float inv_dt ) : float

Private Methods

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

Method Details

AngleJoint() public method

public AngleJoint ( Body bodyA, Body bodyB ) : System
bodyA Body
bodyB Body
return System

GetReactionForce() public method

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

GetReactionTorque() public method

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

Property Details

BiasFactor public property

public float BiasFactor
return float

MaxImpulse public property

public float MaxImpulse
return float

Softness public property

public float Softness
return float