Page 1 of 1

MODS PLEASE DELTE!!

Posted: Wed Nov 24, 2004 7:02 pm
by TheGoldeagle
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.

Posted: Wed Nov 24, 2004 8:37 pm
by DarkWhoppy
Well, here's a basic one...

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());

I might of made a mistake some where, but i'm in a hurry.....

Posted: Wed Nov 24, 2004 9:38 pm
by TheGoldeagle
MODS PLEASE CLOSE! I no longer need this post!

Posted: Wed Nov 24, 2004 10:07 pm
by condrula
[quote="TheGoldeagle"]MODS PLEASE CLOSE! I no longer need this post![/quote]
uh???????????
:shock: :shock: :shock: :shock: :shock: