C# Class FarseerPhysics.Dynamics.Joints.Joint

Show file Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
collideConnected bool
enabled bool
userData object

Public Methods

Method Description
getReactionForce ( float invDt ) : Vector2

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

getReactionTorque ( float invDt ) : float

Get the reaction torque on the body at the joint anchor in N*m.

isFixedType ( ) : bool

Return true if the joint is a fixed type.

Protected Methods

Method Description
Joint ( ) : System
Joint ( Body body ) : System

Constructor for fixed joint

Joint ( Body bodyA, Body bodyB ) : System
wakeBodies ( ) : void

Private Methods

Method Description
initVelocityConstraints ( SolverData &data ) : void
solvePositionConstraints ( SolverData &data ) : bool

Solves the position constraints.

solveVelocityConstraints ( SolverData &data ) : void
validate ( float invDt ) : void

Method Details

Joint() protected method

protected Joint ( ) : System
return System

Joint() protected method

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

Joint() protected method

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

getReactionForce() public abstract method

Get the reaction force on body at the joint anchor in Newtons.
public abstract getReactionForce ( float invDt ) : Vector2
invDt float The inverse delta time.
return Vector2

getReactionTorque() public abstract method

Get the reaction torque on the body at the joint anchor in N*m.
public abstract getReactionTorque ( float invDt ) : float
invDt float The inverse delta time.
return float

isFixedType() public method

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

wakeBodies() protected method

protected wakeBodies ( ) : void
return void

Property Details

collideConnected public property

Set this flag to true if the attached bodies should collide.
public bool collideConnected
return bool

enabled public property

Indicate if this join is enabled or not. Disabling a joint means it is still in the simulation, but inactive.
public bool enabled
return bool

userData public property

Set the user data pointer.
public object userData
return object