Face next Position, relative to current Rotation [SOLVED]

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.
paddy
Posts: 25
Joined: Tue Oct 23, 2007 12:30 pm

Post by paddy »

what do you mean in special ? The last snippet was all I used to rotate a user loaded mesh, with a initial start rotation torwards step n+1.

you could write that in general:

Code: Select all


vector3df v = TargetNode->getPosition() - CurrentNode->getPosition()

vector3df angle = v.getHorizontalAngle() + StartRotation;

Node->setRotation(angle);
greets
Post Reply