Closed mreinstein closed 11 months ago
Looking at this line in physics_object.hpp:
const Vec2 new_position = position + last_update_move + (acceleration - last_update_move * 40.0f) * (dt * dt);
https://github.com/johnBuffer/VerletSFML-Multithread/blob/4c380909f5fe02b0acb4904581737e5d66d96c0d/src/physics/physic_object.hpp#L32C9-L32C119
It's an arbitray value used to damp velocity (it's a rough approximation of air friction).
Looking at this line in physics_object.hpp:
https://github.com/johnBuffer/VerletSFML-Multithread/blob/4c380909f5fe02b0acb4904581737e5d66d96c0d/src/physics/physic_object.hpp#L32C9-L32C119