
i have already searched thru the documentation and tried various ways but with no success... so remember this is the BEGINNERS forum and dont tell me I should be able to figure it out because I CAN'T!!!

Code: Select all
irr::core::vector3df dir = irr::core::vector3df(0.0f,0.0f,OffSet); //Offset = Speed * Time Factor; for smooth animation
irr::core::matrix4 rotMatrix;
rotMatrix.setRotationDegrees(node->getRotation());
rotMatrix.transformVect(dir);
node->setPosition(node->getPosition() + dir);