Moving nodes based on frametime

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.
Post Reply
Fex
Posts: 4
Joined: Wed Dec 24, 2008 12:35 am

Moving nodes based on frametime

Post by Fex »

Well i noticed that doing cube->setPosition(cube->getPosition()+vector3df(0,0,1));

Reacted differently to different peoples computers because FPS varies. How would i calculate that with some kind of timer so it moves the same on all screens?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You should have a look at this thread.

Travis
Fex
Posts: 4
Joined: Wed Dec 24, 2008 12:35 am

Post by Fex »

vitek wrote:You should have a look at this thread.

Travis
Thank you! :D
Post Reply