implement verlet integration - much more stable

This commit is contained in:
2026-02-16 00:37:37 +01:00
parent d1b115a7c3
commit d6ce1a94f5
4 changed files with 50 additions and 12 deletions

View File

@ -10,7 +10,7 @@ constexpr float VERTEX_SIZE = 5.0;
constexpr Color VERTEX_COLOR = {27, 188, 104, 255};
constexpr Color EDGE_COLOR = {20, 133, 38, 255};
constexpr float SIM_SPEED = 2.0;
constexpr float SIM_SPEED = 4.0;
constexpr float CAMERA_DISTANCE = 2.2;
constexpr float DEFAULT_SPRING_CONSTANT = 1.5;