I need a way to instead of putting the camera on a invisible object, add it to any of the faeries. And move the faerie when I move around. It will be the player model.
I have tried some things, but they all failed :-/
Any help appreciated!
Code: Select all
scene::ICameraSceneNode* camera =
smgr->addCameraSceneNodeFPS(0, 100.0f, 300.0f, -1, 0, 0, true);
camera->setPosition(core::vector3df(-100,50,-150));
scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(
selector, camera, core::vector3df(30,50,30),
core::vector3df(0,-1,0),
core::vector3df(0,50,0));
camera->addAnimator(anim);
anim->drop();