- #1
EricMiddleton
- 3
- 0
I am working on a simple physics engine right now and when the object eventually comes to a rest, it starts 'twitching' (moving up/down slightly very quickly) because gravity pulls it through the floor, and then the collision detection pops it back up. Here is the order in which my simulation operates:
Calculate Acceleration (Gravity)
Check prior collisions
Update Position
Update Velocity
The only thing I can think of is that the collisions are being tested before the new positions are updated. Thanks for any help you can provide.
Calculate Acceleration (Gravity)
Check prior collisions
Update Position
Update Velocity
The only thing I can think of is that the collisions are being tested before the new positions are updated. Thanks for any help you can provide.