C# Class FarseerPhysics.Dynamics.ContactManager

Datei anzeigen Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
ActiveContacts HashSet
broadPhase IBroadPhase
contactList List
onBeginContact BeginContactDelegate
onBroadphaseCollision BroadphaseDelegate
onContactFilter CollisionFilterDelegate
onEndContact EndContactDelegate
onPostSolve PostSolveDelegate
onPreSolve PreSolveDelegate

Public Methods

Method Description
addPair ( FixtureProxy &proxyA, FixtureProxy &proxyB ) : void
shouldCollide ( Fixture fixtureA, Fixture fixtureB ) : bool

Private Methods

Method Description
ContactManager ( IBroadPhase broadPhase ) : System.Collections.Generic
RemoveActiveContact ( Contact contact ) : void
collide ( ) : void
destroy ( Contact contact ) : void
findNewContacts ( ) : void
updateContacts ( ContactEdge contactEdge, bool value ) : void

Method Details

addPair() public method

public addPair ( FixtureProxy &proxyA, FixtureProxy &proxyB ) : void
proxyA FixtureProxy
proxyB FixtureProxy
return void

shouldCollide() public static method

public static shouldCollide ( Fixture fixtureA, Fixture fixtureB ) : bool
fixtureA Fixture
fixtureB Fixture
return bool

Property Details

ActiveContacts public_oe property

The set of active contacts.
public HashSet ActiveContacts
return HashSet

broadPhase public_oe property

public IBroadPhase broadPhase
return IBroadPhase

contactList public_oe property

public List contactList
return List

onBeginContact public_oe property

Fires when a contact is created
public BeginContactDelegate onBeginContact
return BeginContactDelegate

onBroadphaseCollision public_oe property

Fires when the broadphase detects that two Fixtures are close to each other.
public BroadphaseDelegate onBroadphaseCollision
return BroadphaseDelegate

onContactFilter public_oe property

The filter used by the contact manager.
public CollisionFilterDelegate onContactFilter
return CollisionFilterDelegate

onEndContact public_oe property

Fires when a contact is deleted
public EndContactDelegate onEndContact
return EndContactDelegate

onPostSolve public_oe property

Fires after the solver has run
public PostSolveDelegate onPostSolve
return PostSolveDelegate

onPreSolve public_oe property

Fires before the solver runs
public PreSolveDelegate onPreSolve
return PreSolveDelegate