0226e83010
A bunch of tweaks
...
- Add max steering lock and limit drift assist to never exceed it
- Bring back tyre curve debug
- Show relevant wheel debug values
- Calculate camber for pacejka
2025-08-04 00:35:46 +04:00
5181b9b813
Change how interpolation works, add mouse movement override to follow camera
2025-08-02 20:41:22 +04:00
7f928a6f2c
Interpolate wheels too, use interpolated bodies and wheels in debug visualization
2025-08-02 14:52:30 +04:00
a6cbfaf88c
More tyre tweaks, chase camera like in GTA 5, basic rigid body interpolation so rendering can run faster than physics and still see everything smoothly
2025-08-02 14:01:32 +04:00
82e9022c73
Suspension spring force along hit normal again, tweak tyres, add drift assist (just steering for you a bit, no ghost forces)
2025-07-30 01:58:31 +04:00
88fac29a6c
Fix suspension when driving on other rigid bodies, super solid now
...
The key was to limit the total spring impulse similar to how contact impulse is limited, so that spring always pushes and never pulls
2025-07-29 01:58:33 +04:00
5d9d321695
Working wasm build!
2025-07-25 00:38:24 +04:00
37736753e5
Fix level reload not working when paused
2025-07-13 23:28:07 +04:00
8b8e4f9513
Level hot reload working
2025-07-13 23:09:32 +04:00
7da986970e
Basic lelel import working, collisions for level geo broken
2025-07-13 00:45:35 +04:00
a81e81c52c
Implement blender scene export script, add support for asset based level geom instancing
2025-07-12 23:16:57 +04:00
5f4fa12040
A bunch of prototype code for asset pipeline
2025-07-11 23:18:35 +04:00
00190a45fc
Lots of optimizations and bug fixes for static geometry, improved debugging
2025-07-01 00:09:10 +04:00
bce37a3b7e
Updates 3
2025-06-28 23:24:03 +04:00
1094afac02
Pivot to game jam game about an ice cream truck lol
2025-06-28 17:56:21 +04:00
8378b943cb
Compound shapes support, better debug ui
2025-06-16 01:19:31 +04:00
735c61fd05
First implementation of track collision (non convex triangle level geometry)
2025-05-12 01:17:49 +04:00
df0fe56368
Refactor rewind to include the whole world, not just physics sceen
2025-05-08 14:32:31 +04:00
a4ed430efe
Fix a bunch of collision bugs
2025-05-03 23:24:45 +04:00
1ea89fb2c9
Improve engine friction, add a rev limiter
2025-05-02 21:11:48 +04:00
08b6748d76
Add tyre friction debug visualization and tweak tyres to be more slidy
2025-05-02 20:32:13 +04:00
bdd7bbb9b1
Refactor asset loading to remove duplication, add loading of tyre params from csv
2025-04-27 22:53:07 +04:00
3bab8ac88e
Proper raycasts against other rigid bodies instead of a fake plane
2025-04-27 17:06:04 +04:00
5c797145ae
Fixed power delivery from engine, now 0-100 time seems to be in the right ballpark
2025-04-27 12:40:46 +04:00
78ab4eeae9
Start implementing engine simulation
2025-04-26 20:29:58 +04:00
8caf47003e
Proper brake force using friction
2025-03-16 15:49:10 +04:00
bf7b7e6ae3
Implement wheel rotation and friction
2025-03-16 14:53:13 +04:00
60522ea836
Reimplement suspension, now with correct friction using PGS
2025-03-16 00:00:48 +04:00
50d0401479
Implement friction in PGS
2025-03-15 20:53:45 +04:00
a2ad9e490a
Refactor collision detection to support persistent contacts across frames
2025-03-09 15:04:13 +04:00
ccd987aeae
Start implementing optimized substepping (collision detection only once per frame)
2025-03-08 14:50:39 +04:00
860f9f59b6
Optimize edge separation test, use SOA structs in more places
2025-03-02 21:14:12 +04:00
a1e8d0f231
Disable edge separation tests for now and make a stress test
2025-03-01 20:54:26 +04:00
503d6170c2
Fix restitution and start implementing BVH acceleration for collision
2025-03-01 19:04:01 +04:00
c91018fec8
Remove unnecessary rl dependency in physics engine
2025-03-01 13:30:25 +04:00
c2b831a4d6
Implement simulation rewind
2025-02-09 19:54:44 +04:00
aa1dab6079
Update shape from immediate_body
2025-02-09 19:33:19 +04:00
d816e96c3e
Refactor convex shape handling
...
This will allow me to implement rewind easily
2025-02-09 19:15:56 +04:00
bf995882e6
Double buffer physics state to allow easy debugging and interpolation
...
Fix a bug in restitution
2025-02-09 02:21:34 +04:00
25ff57168b
Collisions for the convex shape
2025-02-02 02:41:24 +04:00
999a7a4631
Calculate inertia tensor for the convex hull, convert simulation to use full inertia tensor matrix
...
I couldn't figure out how to diagonalize the inertia tensor matrix so I will go the simle route and just use the full 3x3 matrix
2025-02-02 01:17:35 +04:00
660a535a7c
Experiment with different com calculations
2025-02-01 01:07:18 +04:00
b40dd32b36
Funny boxes flying
2025-01-19 23:46:01 +04:00
e22e667e27
Fixed unstable suspension (feel like an idiot)
2025-01-07 04:23:27 +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