Relative Rotation

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
MisterRose
Posts: 18
Joined: Thu Jun 16, 2011 2:46 pm

Relative Rotation

Post by MisterRose »

I am looking for some greatly simplified code to handle the motion of a node. When I add a node it gets added to the origin and I see everything fine. I can set the rotation and everything behaves as expected.

What I would like to do is to take that node and rotate it relative to its current orientation. I understand that this involves some matrix math, and that this is built in to the engine, but I can't seem to find the magical incantation that works for my case.

Can anyone provide a simple snippet to rotate a node relative to its current heading?

Thanks in advance,
You are unique - just like everyone else.
blAaarg
Posts: 94
Joined: Tue Mar 02, 2010 9:11 pm
Location: SoCal

Post by blAaarg »

vector3df::getHorizontalAngle()

The API has the description and example code in it.
"Computers don't make mistakes! What they do they do on purpose!!"

-Dale Gribble
Post Reply