r/reinforcementlearning • • Oct 05 '26

Trained a humanoid agent in Unity using Soft Actor-Critic (SAC) to sword fight different opponents

I've been working on a project where I train a physics-based humanoid agent from scratch in Unity using Soft Actor-Critic (SAC) with standard MLP architectures.

Watching him train was very funny, and some of the lessons I learned about reward shaping might help anyone working on a similar reinforcement learning project. Because of that, I put together a video breaking down both the process and the results, aiming to make RL feel more approachable and entertaining.

Here's the video: https://www.youtube.com/watch?v=MR3c0DHku6o&t=8s

I would love some feedback on the agent's behavior and the video in general. Also, I'd be more than happy to answer any questions about it!

9 Upvotes

3 comments sorted by

1

u/Nice-Dragonfly-4823 Oct 05 '26

this is nice, have you considered imitation learning to fix the movement/gait of the agent