I'm trying attache a node to the camera,
it almost works but only when i move camera,
forward to backward or right to left...
when i rotate cam cube doesn't do anything
is a simply way to make it work with rotation?
my code:
Code: Select all
cam=device->getSceneManager()->
addCameraSceneNodeFPS(0,120,400,-1,keyMap,8,true,10.0f);
scene::IMeshSceneNode *cube= device->getSceneManager()->addCubeSceneNode
(5,device->getSceneManager()->getActiveCamera(),-1,core::vector3df(0,0,100));
