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?
Converting LookAt vector to rotation vector
-
Peter Müller
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Converting LookAt vector to rotation vector
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
Rotate a Node, face another node:
http://irrlicht.sourceforge.net/phpBB2/ ... hero#12035
http://irrlicht.sourceforge.net/phpBB2/ ... hero#12035
-
Peter Müller
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Thanks! I searched for 'lookat' but nothing useful found.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer