Palomino - Object Module

©2004,2008  Jim E. Brooks   http://www.palomino3d.org


Contents


Overview

[2008/02]

This modules has the Object classes (Object/Dyna/Craft) and auxillary classes (AxisMap,RotationList).

Object Derivatives


Object Destruction

[2008/11]

Related states are collided, detached, and crashed, but those don't necessarily mean the Object has to be deleted from memory.

Since Objects are referenced-counted, they cannot be directly deleted. Rather, Objects are scheduled for deletion by Object::Zombify(). This method will set a zombie flag, then broadcast a DestroyObject Event to release all references to it. The event is propagated to Lua too as Lua can hold C++ objects as Lua userdata objects.

Of course, there probably will be places in the code that fail to listen to that event. As a mitigation to at least reduce memory, Object::Zombify() will detach from World a zombie's Graph, and replace it with a minimal Graph.


Last modified: Sun Nov 30 22:21:18 EST 2008