How to do frame rate independent mouse?
The original code is here:
http://nusoftwarege.svn.sourceforge.net ... iew=markup
Those specific methods (from the link above):
If you could check the link above more 'deeply' I think you'd see the problem cause I'm sure it's a simple thing to change and what I've done is too many changes hence I get a whole different behavior.
P.S
Thanks for keeping trying
http://nusoftwarege.svn.sourceforge.net ... iew=markup
Those specific methods (from the link above):
Code: Select all
400 void CSceneNodeControllerAnimator::moveNode(ISceneNode* node, vector3df vel)
401 {
402 matrix4 m;
403 m.setRotationDegrees(node->getRotation());
404 m.transformVect(vel);
405
406 if(!m_VerticalMovement)
407 vel.Y = 0;
408
409 node->setPosition(node->getPosition() + vel);
410 }
411
412 void CSceneNodeControllerAnimator::rotateNode(ISceneNode* node, vector3df rot)
413 {
414 matrix4 m;
415 m.setRotationDegrees(node->getRotation());
416 matrix4 n;
417 n.setRotationDegrees(rot);
418 m *= n;
419 node->setRotation(m.getRotationDegrees());
420 }P.S
Thanks for keeping trying
