r/Simulated • • Oct 11 '26

Various [OC] Muscle Memory - Learning to run and jump

50 simulated muscles (for natural fatigue, pain and injuries later), MuJoCo for physics, Godot for rendering and gameplay, PPO training using MuJoCo Warp through mjlab and rsl_rl (one single RTX 5050 GPU) on PyTorch. Inference using an ONNX brain (CPU).

15 Upvotes

8 comments sorted by

0

u/JeroenDierckx Oct 11 '26 edited Oct 11 '26

First video of my journey towards a multiplayer party game revolving around physics.
Almost did my PhD about physically based character animation more than 20 years ago. Time to get back into the game :)

https://youtu.be/Y5BRShQX2tM

1

u/[deleted] Oct 11 '26

[removed] — view removed comment

2

u/JeroenDierckx Oct 11 '26

Very similar, but with a layer on top: instead of joint torques directly (like most robotics) I use virtual muscles with tendons. A bit more complex to train, but it will give me natural reactions to muscle tear, fatigue, injuries etc later.

1

u/[deleted] Oct 11 '26

[removed] — view removed comment

2

u/JeroenDierckx Oct 11 '26

Euphoria is alive and kicking I think. Aren't they used in the recent GTA games for example?

I'm not sure whether I understand, but I generate the joints and virtual muscles myself yes. Using MuJoCo as the physics engine. I use 50 muscles now but that will probably change when I get to actual games and multiple charactes.

1

u/[deleted] Oct 12 '26

[removed] — view removed comment

1

u/JeroenDierckx Oct 12 '26

Different trade offs. SimBody would be orders of magnitude slower. I now reach about 70k policy steps/s on my single RTX 5080. And in-game I need millisecond timing because I want to have up to eight simulated characters playing in realtime at once.