Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
BodyActivationListener Class Referenceabstract

#include <BodyActivationListener.h>

Public Member Functions

virtual ~BodyActivationListener ()=default
 Ensure virtual destructor.
 
virtual void OnBodyActivated (const BodyID &inBodyID, uint64 inBodyUserData)=0
 
virtual void OnBodyDeactivated (const BodyID &inBodyID, uint64 inBodyUserData)=0
 

Detailed Description

A listener class that receives events when a body activates or deactivates. It can be registered with the BodyManager (or PhysicsSystem).

Constructor & Destructor Documentation

◆ ~BodyActivationListener()

virtual BodyActivationListener::~BodyActivationListener ( )
virtualdefault

Ensure virtual destructor.

Member Function Documentation

◆ OnBodyActivated()

virtual void BodyActivationListener::OnBodyActivated ( const BodyID inBodyID,
uint64  inBodyUserData 
)
pure virtual

Called whenever a body activates, note this can be called from any thread so make sure your code is thread safe. At the time of the callback the body inBodyID will be locked and no bodies can be written/activated/deactivated from the callback.

◆ OnBodyDeactivated()

virtual void BodyActivationListener::OnBodyDeactivated ( const BodyID inBodyID,
uint64  inBodyUserData 
)
pure virtual

Called whenever a body deactivates, note this can be called from any thread so make sure your code is thread safe. At the time of the callback the body inBodyID will be locked and no bodies can be written/activated/deactivated from the callback.


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