It is convenient to be able to use using _getManager() to know which scene manager to call destroyEntity on when just having an Entity pointer, but it is not possible with Camera.
Code: Select all
Camera::Camera( IdType id, ObjectMemoryManager *objectMemoryManager, SceneManager* sm )
: Frustum( id, objectMemoryManager ),
Code: Select all
Frustum::Frustum( IdType id, ObjectMemoryManager *objectMemoryManager ) :
MovableObject( id, objectMemoryManager, (SceneManager*)0, 1 ),