Jopnal Engine  alpha 0.4
Simple Component Based 2D/3D Game Engine
Public Member Functions | Friends | List of all members
jop::ContactListener2D Class Referenceabstract

#include <ContactListener2D.hpp>

Public Member Functions

virtual ~ContactListener2D ()=0
 Virtual destructor. More...
 
virtual void beginContact (Collider2D &collider, const ContactInfo2D &ci)
 Begin contact callback. More...
 
virtual void endContact (Collider2D &collider)
 End contact callback. More...
 

Friends

class Collider2D
 

Detailed Description

Definition at line 37 of file ContactListener2D.hpp.

Constructor & Destructor Documentation

virtual jop::ContactListener2D::~ContactListener2D ( )
pure virtual

Virtual destructor.

Member Function Documentation

virtual void jop::ContactListener2D::beginContact ( Collider2D collider,
const ContactInfo2D ci 
)
virtual

Begin contact callback.

This is called when two fixtures begin to overlap. This event can only occur inside the time step. This is called for sensors and non-sensors.

Parameters
colliderReference to the collider which is being collided with
ciContact info containing the contact point and contact normal
virtual void jop::ContactListener2D::endContact ( Collider2D collider)
virtual

End contact callback.

This is called when two fixtures cease to overlap. This is called for sensors and non-sensors. This may be called when a body is destroyed, so this event can occur outside the time step.

Parameters
colliderReference to the collider which was being collided with

Friends And Related Function Documentation

friend class Collider2D
friend

Definition at line 41 of file ContactListener2D.hpp.


The documentation for this class was generated from the following file: