Skip to main content
GameDev.net gamedev.net
🔒 Locked

Time based movement using forces

Started by 3DModelerMan Mar 10, 2009 at 7:17 PM 0 replies 500+ views
Original Post
3DModelerMan
3DModelerMan
I have a setup that moves my camera that's time based. And I want to make the character's movement time based also. But the camera uses a basic " setPosition( getX+1 * frametime, getY+1 * frametime, getZ+1 * frametime ) " And the character moves using add force functions. Can I just multiply the force amount by the frametime like with the example I showed you? Thanks.
halfpower
halfpower
acceleration = force / mass
velocity = acceleration * (t2-t1)
position = velocity * (t2-t1)

hope that helps.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.