Coiote
12-05-2008 12:03:58
Hey
I have a spaceshuttle class which is a NxOgre object, a body that I create.
I'm trying to attach him into my scene, but I can't do it, it allways pop this error:
I'm trying to do this, because I want to have a camera following the object.
And I'm trying do that with these lines:
Thankx
I have a spaceshuttle class which is a NxOgre object, a body that I create.
I'm trying to attach him into my scene, but I can't do it, it allways pop this error:
Ogre::SceneNode::attachObject' : cannot convert parameter from 'SpaceShuttle *' to 'Ogre::MovableObject *
I'm trying to do this, because I want to have a camera following the object.
And I'm trying do that with these lines:
node->attachObject(SpaceShuttle); <<<--- ERROR LINE
mCamera->setAutoTracking(true,node);
camNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
camNode->attachObject(mCamera);
Thankx