MODS PLEASE DELTE!!
Posted: Wed Nov 24, 2004 7:02 pm
I can't seem to find out how to get a third person view. I'm sure the engine can do it, Whats the code? Thanks in advanced.
Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
Code: Select all
Camera->setPosition(vector3df(
sin(PlayerNode->getRotation().Y*PI/180.0f + 200),
0 /*UNITS ABOVE PLAYER*/,
cos( PlayerNode->getRotation().Y*PI/180.0f + 200 )
);
Camera->setTarget(vector3df(PlayerNode->getPosition());