How to do frame rate independent mouse?

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.
alexionne
Posts: 55
Joined: Fri Jun 22, 2007 9:55 am
Location: Novi Sad, Serbia

Post by alexionne »

Ok, back to the beginning. Can you, please, give us the code of moveNode and rotateNode functions, I couldn't find then in Irrlicht?
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

The original code is here:
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 		}
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 :)
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Post Reply