Converting LookAt vector to rotation vector

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Peter Müller
Posts: 292
Joined: Sun Mar 14, 2004 5:28 pm
Location: Germany
Contact:

Converting LookAt vector to rotation vector

Post by Peter Müller »

Hi!
I've got the position of an bot and of it's target (vector3df vBot, vTarget).
Now I want to rotate the model of the bot as if it was looking at the target.

With rotation vector I mean the vector, I need for ISceneNode::setRotation().

Any suggestions?
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Peter Müller
Posts: 292
Joined: Sun Mar 14, 2004 5:28 pm
Location: Germany
Contact:

Post by Peter Müller »

Thanks! I searched for 'lookat' but nothing useful found.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
Post Reply