79 Commits

Author SHA1 Message Date
f2f23ee2e0 Proper stable collisions
Turns out when you get a collision pair YOU SHOULD HANDLE CONTACT RESPONSE FOR BOTH BODIES, NOT JUST ONE OF THEM
Otherwise they move and their next collision (if a->b, b->a are found and resolved separately) they might penetrate badly or worse and everything blows up

This is probably not as important in sequential impulse type solvers because the actual position update is deferred, but in a position based one it's pretty important as it turns out.

It's also better for performance because I don't have to run the collision query for the same two bodies two times
2025-01-23 02:16:12 +04:00
b40dd32b36 Funny boxes flying 2025-01-19 23:46:01 +04:00
4f7a494fff Interesting... collision response 2025-01-19 22:15:22 +04:00
0961b7551a Manifold contact optimization 2025-01-19 21:44:42 +04:00
82470ca3c7 Edge contacts and fix bug with face contacts 2025-01-19 18:16:52 +04:00
4af30979d5 collision detection progress 2025-01-19 04:32:36 +04:00
923cb6f459 Convex vs convex face manifolds working 2025-01-18 17:16:32 +04:00
43f8c66ec1 Start implementing convex collisions 2025-01-17 00:24:17 +04:00
Sergey Poznyak
2b3739937a Start implementing a span allocator 2025-01-13 02:46:54 +04:00
Sergey Poznyak
587104651c Halfedge test 2025-01-12 19:29:29 +04:00
Sergey Poznyak
b46858cf55 Implementing halfedge mesh 2025-01-12 03:59:33 +04:00
ccefa6b952 Start implementing rigid body collision 2025-01-12 02:57:33 +04:00
21545b1c9d Add profiling to the game 2025-01-10 01:46:13 +04:00
e618ad9520 Timestep independence, finally 2025-01-09 15:07:19 +04:00
e22e667e27 Fixed unstable suspension (feel like an idiot) 2025-01-07 04:23:27 +04:00
7a77d1c409 Working BVH 2025-01-07 00:14:52 +04:00
493f311ad0 Almost working bvh 2025-01-06 03:40:40 +04:00
0687ff4858 Wheel friction working 2025-01-05 03:16:44 +04:00
5c0dd2f9f5 My own rigid body phyiscs that works, wat 2025-01-04 21:49:34 +04:00
bb77e8e821 Start of the physics engine with immediate mode api (waaat) 2025-01-04 20:05:24 +04:00
ad2d175b10 Kansei dorifto (no idea why car rotates like that lol) 2025-01-04 03:42:04 +04:00
aa0f945b0c Many editor improvements 2025-01-04 00:06:55 +04:00
686d034b06 Fix multiple point deletion 2025-01-03 23:22:51 +04:00
64dbe0c5e4 Draw road mesh, refactor 2025-01-03 23:18:27 +04:00
e404a33c6f Good spline frame algorithm 2025-01-03 20:56:47 +04:00
1815ab9ef2 Start making an actual road mesh 2025-01-03 01:11:39 +04:00
72bd683900 Prototype editor 2025-01-03 00:42:38 +04:00
b7e15bf4cd Free look camera 3d 2025-01-02 15:07:57 +04:00
138e946f34 Initial commit 2025-01-02 14:18:22 +04:00