MODS PLEASE DELTE!!

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
TheGoldeagle
Posts: 6
Joined: Mon Nov 22, 2004 1:54 am
Location: USA: Texas
Contact:

MODS PLEASE DELTE!!

Post 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.
Last edited by TheGoldeagle on Wed Nov 24, 2004 9:55 pm, edited 1 time in total.
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post 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.....
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
TheGoldeagle
Posts: 6
Joined: Mon Nov 22, 2004 1:54 am
Location: USA: Texas
Contact:

Post by TheGoldeagle »

MODS PLEASE CLOSE! I no longer need this post!
condrula
Posts: 44
Joined: Wed Mar 10, 2004 11:51 pm
Location: italy

Post by condrula »

[quote="TheGoldeagle"]MODS PLEASE CLOSE! I no longer need this post![/quote]
uh???????????
:shock: :shock: :shock: :shock: :shock:
Post Reply