VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Member Functions | List of all members
ContactListener Class Reference

Handler for notifications of ContactEvents from the b2World. More...

Inheritance diagram for ContactListener:

Public Member Functions

virtual void BeginContact (b2Contact *contact) override
 Notifies both Bodys involved that they have contacted. More...
 
virtual void EndContact (b2Contact *contact) override
 Notifies both Bodys involved that they are no longer contacting. More...
 

Detailed Description

Handler for notifications of ContactEvents from the b2World.

Member Function Documentation

virtual void ContactListener::BeginContact ( b2Contact *  contact)
overridevirtual

Notifies both Bodys involved that they have contacted.

Parameters
contactContact between both bodies
virtual void ContactListener::EndContact ( b2Contact *  contact)
overridevirtual

Notifies both Bodys involved that they are no longer contacting.

Parameters
contactContact between both bodies