Tutorial 3 shows you how to rotate a custom scene node using CreateRotationAnimator().
I'm trying to apply this animator to the camera instead and, although it doesn't error it doesn't seem to do anything either.
Is the below code supported or am I expecting too much?
Code: Select all
scene::ICameraSceneNode * camera;
camera = smgr->addCameraSceneNode(0,core::vector3df(0,-150,400), core::vector3df(0,0,0));
scene::ISceneNodeAnimator* camera_rotator =
smgr->createRotationAnimator(core::vector3df(0.8f,0,0.8f));
if(camera_rotator)
{
camera->addAnimator(camera_rotator);
}
