CUGL 4.0
Cornell University Game Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cugl::physics2::WorldObject Class Reference

#include <CUWorldObject.h>

Inheritance diagram for cugl::physics2::WorldObject:
cugl::physics2::ObstacleSelector cugl::physics2::lights::Light cugl::physics2::lights::LightMap cugl::physics2::lights::ChainLight cugl::physics2::lights::ConeLight cugl::physics2::lights::DirectionalLight cugl::physics2::lights::PointLight

Public Member Functions

virtual void detachWorld (const ObstacleWorld *world)
 

Detailed Description

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.

Member Function Documentation

◆ detachWorld()

virtual void cugl::physics2::WorldObject::detachWorld ( const ObstacleWorld world)
inlinevirtual

Detatches the given obstacle world from this object.

This method ensures safe clean-up.

Parameters
worldThe world to detatch.

Reimplemented in cugl::physics2::ObstacleSelector, cugl::physics2::lights::Light, and cugl::physics2::lights::LightMap.


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