Public Group

Camera Move Speed

This topic is 3718 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hi all. I use a timedelta to up date the camera, something like this... speed = 80.0f; timedelta = timeElapsed = DXUtil_Timer(TIMER_GETELAPSEDTIME); Camera->walk(Speed1 * timeDelta); This works ok, but when the frame rate goes up to say about 400++ frame it goes really fast what way should I handle this. a.Check frame rate, if to high set speed to a lower speed. b.get the current and last positions and do a distance test and if thats to high set speed.

Share on other sites
Your time delta should be the time elapsed since last frame. So you should use something like this:

newTime = DXUtil_Timer(TIMER_GETELAPSEDTIME);timeDelta = newTime - timeElapsed;timeElapsed = newTime;

• 20
• 10
• 19
• 14
• 20