Class atlas::physics::contact_listener
ClassList > atlas > physics > contact_listener
This is the glue between contact events and jolts contact listener. It takes the calls from jolt through virtual functions and allows users to create children for jolt collision.
#include <jolt_contact_listener.hpp>
Inherits the following classes: JPH::ContactListener
Public Functions
Type | Name |
---|---|
void | clear_events () Deletes all events. Helps reset the collisions on load, etc... |
contact_listener () Construct a new contact listener object. |
|
void | run_events_added () Calls all events that came into contact this frame. |
void | run_events_persisted () Runs all events that came into contact every frame but first and last. |
void | run_events_removed () Runs all events who stopped contact this frame. |
Public Functions Documentation
function clear_events
Deletes all events. Helps reset the collisions on load, etc...
void atlas::physics::contact_listener::clear_events ()
function contact_listener
Construct a new contact listener object.
atlas::physics::contact_listener::contact_listener ()
function run_events_added
Calls all events that came into contact this frame.
void atlas::physics::contact_listener::run_events_added ()
function run_events_persisted
Runs all events that came into contact every frame but first and last.
void atlas::physics::contact_listener::run_events_persisted ()
function run_events_removed
Runs all events who stopped contact this frame.
void atlas::physics::contact_listener::run_events_removed ()
The documentation for this class was generated from the following file TheAtlasEngine/atlas/physics/jolt-cpp/jolt_contact_listener.hpp