• Advertisement
Sign in to follow this  

Camera Move Speed

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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;

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement