![]() |
CUGL 4.0
Cornell University Game Library
|
#include <CUWorldObject.h>
Public Member Functions | |
| virtual void | detachWorld (const ObstacleWorld *world) |
An interface for box2d objects that require clean-up.
If a ObstacleWorld is deleted, then all box2d values are deleted, not just the obstacles and joints. This interface is for other box2d features that need cleanup in this case.
|
inlinevirtual |
Detatches the given obstacle world from this object.
This method ensures safe clean-up.
| world | The world to detatch. |
Reimplemented in cugl::physics2::ObstacleSelector, cugl::physics2::lights::Light, and cugl::physics2::lights::LightMap.