• Advertisement

Archived

This topic is now archived and is closed to further replies.

Making objects fall at a certain speed

This topic is 5912 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

i have textured quads moving down the screen by 0.005f everytime which seems to be ok on my machine but since this will change on a different machine due to graphics processing speeds how can i keep it the same. Thanks

Share this post


Link to post
Share on other sites
Advertisement
The common way to solve such problems is to measure FPS and set the speed of your falling object depending on these results.

Share this post


Link to post
Share on other sites
Update the position based on the time difference
position_vector += time_difference * speed_vector

Share this post


Link to post
Share on other sites
personally im using a fixed timewstep now for physics, check out flipcode about 3/4 months ago for a good discussion on it

Share this post


Link to post
Share on other sites

  • Advertisement