C# Class FarseerPhysics.Dynamics.Contacts.ContactSolver

Show file Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
_contacts FarseerPhysics.Dynamics.Contacts.Contact[]
_count int
_positionConstraints FarseerPhysics.Dynamics.Contacts.ContactPositionConstraint[]
_positions Position[]
_step TimeStep
_velocities Velocity[]
_velocityConstraints FarseerPhysics.Dynamics.Contacts.ContactVelocityConstraint[]

Public Methods

Method Description
initializeVelocityConstraints ( ) : void
reset ( TimeStep step, int count, Contact contacts, Position positions, Velocity velocities ) : void
solvePositionConstraints ( ) : bool
solveTOIPositionConstraints ( int toiIndexA, int toiIndexB ) : bool
solveVelocityConstraints ( ) : void
storeImpulses ( ) : void
warmStart ( ) : void

Method Details

initializeVelocityConstraints() public method

public initializeVelocityConstraints ( ) : void
return void

reset() public method

public reset ( TimeStep step, int count, Contact contacts, Position positions, Velocity velocities ) : void
step TimeStep
count int
contacts Contact
positions Position
velocities Velocity
return void

solvePositionConstraints() public method

public solvePositionConstraints ( ) : bool
return bool

solveTOIPositionConstraints() public method

public solveTOIPositionConstraints ( int toiIndexA, int toiIndexB ) : bool
toiIndexA int
toiIndexB int
return bool

solveVelocityConstraints() public method

public solveVelocityConstraints ( ) : void
return void

storeImpulses() public method

public storeImpulses ( ) : void
return void

warmStart() public method

public warmStart ( ) : void
return void

Property Details

_contacts public property

public Contact[],FarseerPhysics.Dynamics.Contacts _contacts
return FarseerPhysics.Dynamics.Contacts.Contact[]

_count public property

public int _count
return int

_positionConstraints public property

public ContactPositionConstraint[],FarseerPhysics.Dynamics.Contacts _positionConstraints
return FarseerPhysics.Dynamics.Contacts.ContactPositionConstraint[]

_positions public property

public Position[] _positions
return Position[]

_step public property

public TimeStep _step
return TimeStep

_velocities public property

public Velocity[] _velocities
return Velocity[]

_velocityConstraints public property

public ContactVelocityConstraint[],FarseerPhysics.Dynamics.Contacts _velocityConstraints
return FarseerPhysics.Dynamics.Contacts.ContactVelocityConstraint[]