Rotating a model
Posted: Thu Apr 23, 2009 6:00 pm
If I want to rotate a model interpThisTickRotation degrees around the Y axis, is this the right way to do it?
Code: Select all
core::matrix4 modelTransformation = model->getRelativeTransformation();
core::matrix4 rotationMat;
rotationMat.setRotationDegrees(core::vector3df(0,interpThisTickRotation,0));
modelTransformation*=rotationMat;
model->setRotation(modelTransformation.getRotationDegrees());