hey, how can i make a camera like that in the video: http://de.youtube.com/watch?v=ryuBstQOyGk
you know what i mean? in front of the camera theres a person and the camera follows the person. if the person rotate to left the camera follows.
sure its a fps camera but i tried it like this:
camera = smgr->addCameraSceneNodeFPS(0, 100.0f, 400.0f);
camera->setTarget(nodeMario->getPosition());
well, the camera shows now to to mario person. but if i rotate around with the camera the mario dont follow and so on like in the video.
Can someone explain me this?
thx[/code]
so a mmorpg camera is a tps camera?
and i tried a tps camera and it works gut, but i addet the colliosion and now the character flying up ( y is getting higher and higher) but i dont do anything. here is my code: http://rafb.net/p/9I4fuA91.html
thx
I thought it was you, Rogerborg. Maybe it was someone else.
The code inherits from SceneNode, not from FPSSceneNode, tho.
Inheriting from SceneNode was the right way, my implementation was not correct as it inherited from FPSSceneNode, so I dragged all the code into the include directory. Yucck!
Anyway, I saw the video and it doesn't look right. Why? the avatar was not placed at the center. Rotation was off, what should've happened was the avatar takes camera pos, then the camera shifts back and then goes a step up.