Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Member Functions | List of all members
box2d::DestructionListener Class Referenceabstract

Joints and fixtures are destroyed when their associated body is destroyed. Implement this listener so that you may nullify references to these joints and shapes. More...

#include <WorldCallbacks.hpp>

Public Member Functions

virtual ~DestructionListener () noexcept
 
virtual void SayGoodbye (Joint &joint)=0
 Called when any joint is about to be destroyed due to the destruction of one of its attached bodies. More...
 
virtual void SayGoodbye (Fixture &fixture)=0
 Called when any fixture is about to be destroyed due to the destruction of its parent body. More...
 

Detailed Description

Joints and fixtures are destroyed when their associated body is destroyed. Implement this listener so that you may nullify references to these joints and shapes.

Constructor & Destructor Documentation

◆ ~DestructionListener()

virtual box2d::DestructionListener::~DestructionListener ( )
inlinevirtualnoexcept

Member Function Documentation

◆ SayGoodbye() [1/2]

virtual void box2d::DestructionListener::SayGoodbye ( Joint joint)
pure virtual

Called when any joint is about to be destroyed due to the destruction of one of its attached bodies.

◆ SayGoodbye() [2/2]

virtual void box2d::DestructionListener::SayGoodbye ( Fixture fixture)
pure virtual

Called when any fixture is about to be destroyed due to the destruction of its parent body.


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