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

Show file Open project: scastle/Solitude Class Usage Examples

Public Properties

Property Type Description
Breakpoint float
Enabled bool

Protected Properties

Property Type Description
InvIA float
InvIB float
InvMassA float
InvMassB float
LocalCenterA Vector2

Public Methods

Method Description
GetReactionForce ( float inv_dt ) : Vector2

Get the reaction force on body2 at the joint anchor in Newtons.

GetReactionTorque ( float inv_dt ) : float

Get the reaction torque on body2 in N*m.

IsFixedType ( ) : bool

Return true if the joint is a fixed type.

Protected Methods

Method Description
Joint ( Body body ) : System

Constructor for fixed joint

Joint ( Body body, Body bodyB ) : System
WakeBodies ( ) : void

Private Methods

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

Solves the position constraints.

SolveVelocityConstraints ( TimeStep &step ) : void
Validate ( float invDT ) : void

Method Details

GetReactionForce() public abstract method

Get the reaction force on body2 at the joint anchor in Newtons.
public abstract GetReactionForce ( float inv_dt ) : Vector2
inv_dt float The inv_dt.
return Vector2

GetReactionTorque() public abstract method

Get the reaction torque on body2 in N*m.
public abstract GetReactionTorque ( float inv_dt ) : float
inv_dt float The inv_dt.
return float

IsFixedType() public method

Return true if the joint is a fixed type.
public IsFixedType ( ) : bool
return bool

Joint() protected method

Constructor for fixed joint
protected Joint ( Body body ) : System
body Body
return System

Joint() protected method

protected Joint ( Body body, Body bodyB ) : System
body Body
bodyB Body
return System

WakeBodies() protected method

protected WakeBodies ( ) : void
return void

Property Details

Breakpoint public property

The Breakpoint simply indicates the maximum Value the JointError can be before it breaks. The default value is float.MaxValue
public float Breakpoint
return float

Enabled public property

public bool Enabled
return bool

InvIA protected property

protected float InvIA
return float

InvIB protected property

protected float InvIB
return float

InvMassA protected property

protected float InvMassA
return float

InvMassB protected property

protected float InvMassB
return float

LocalCenterA protected property

protected Vector2 LocalCenterA
return Vector2