Rotating a .md2 model

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
Guest

Rotating a .md2 model

Post by Guest »

How can I rotating a .md2 model with the keyboard ?
The goal is moving a character.

Sam
hearsedriver
Posts: 81
Joined: Fri Aug 22, 2003 12:06 pm
Location: Germany
Contact:

Post by hearsedriver »

Code: Select all

vector3df rot = node->getRotation(); // get the rotation; node is your character scenenode
rot.Y += 1.0f; // rotate around the y-axis (or any other axis, according to your needs)
node->setRotation( rot ); // set the new rotation
Cheers.
matthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de
Post Reply