Public Member Functions | List of all members
b2DestructionListener Class Referenceabstract

#include <b2_world_callbacks.h>

Inheritance diagram for b2DestructionListener:
Inheritance graph
[legend]

Public Member Functions

virtual void SayGoodbye (b2Joint *joint)=0
 
virtual void SayGoodbye (b2Fixture *fixture)=0
 
virtual ~b2DestructionListener ()
 

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.

Definition at line 41 of file b2_world_callbacks.h.

Constructor & Destructor Documentation

◆ ~b2DestructionListener()

virtual b2DestructionListener::~b2DestructionListener ( )
inlinevirtual

Definition at line 44 of file b2_world_callbacks.h.

Member Function Documentation

◆ SayGoodbye() [1/2]

virtual void b2DestructionListener::SayGoodbye ( b2Joint joint)
pure virtual

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

Implemented in DestructionListener.

◆ SayGoodbye() [2/2]

virtual void b2DestructionListener::SayGoodbye ( b2Fixture fixture)
pure virtual

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

Implemented in DestructionListener.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22