How can I rotating a .md2 model with the keyboard ?
The goal is moving a character.
Sam
Rotating a .md2 model
-
hearsedriver
- Posts: 81
- Joined: Fri Aug 22, 2003 12:06 pm
- Location: Germany
- Contact:
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 rotationmatthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de