Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 20 December 2012 - 09:24 AM
Posted 20 December 2012 - 12:39 PM
Posted 21 December 2012 - 03:01 AM
Here you can add the damping, but friction is related to the contact between two bodies.
So you could add :
V.Position += (V.Position-V.OldPosition) * damping + V.Acceleration*Timestep*Timestep;
The friction will change the acceleration "V.Acceleration" in function of the contact normal.
Hope it can help...
Thanks, but it's not work true
Edited by MDSINA, 21 December 2012 - 03:02 AM.
Posted 21 December 2012 - 06:17 AM
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.