#include <MovableObject.h>
Public Member Functions | |
MovableObject (SceneNode *parentNode) | |
virtual | ~MovableObject () |
Protected Attributes | |
SceneNode * | mBaseNode |
A MovableObject can be used for a variety of things as long as they contain both a physical appearance as well as a position in the world. The MovableObject is responsible for positioning itself to stay on top of whatever ground is underneath it so only positions along the x/z plane are allowed. The y value will be calculated automatically.
Definition at line 24 of file MovableObject.h.
ASR::MovableObject::MovableObject | ( | SceneNode * | parentNode | ) |
Definition at line 7 of file MovableObject.cpp.
References mBaseNode.
00008 { 00009 mBaseNode = parentNode->createChildSceneNode ( ); 00010 }
ASR::MovableObject::~MovableObject | ( | ) | [virtual] |
Definition at line 14 of file MovableObject.cpp.
References mBaseNode.
00015 { 00016 mBaseNode->getParentSceneNode ()->removeAndDestroyChild ( mBaseNode->getName() ); 00017 }
SceneNode* ASR::MovableObject::mBaseNode [protected] |