Unity ML-Agents: Using the Ray Perception Sensor

Опубликовано: 10 Апрель 2026
на канале: Ludic Worlds
851
44

In this tutorial, I show you how to add a 'Ray Perception Sensor 3D' to your ML-Agents project in Unity. Building on the 'Turtle Agent' project from my "Get Started with ML-Agents" series, we replace the goal position observations with a Ray Perception Sensor, configure its settings, and run a new training session.

📀 Get the completed Unity Project from here:   / project-source-155239695  
📜 To run a training session, use these commands: https://github.com/LudicWorlds/ml-age...

→ Next Video • Coming Soon!
← Previous Video • Get Started with ML-Agents in Unity - Part 6: Inference & Training Stats:    • Get Started with ML-Agents in Unity - Part...  

🎓 Get Started with ML-Agents in Unity:    • Get Started with ML-Agents in Unity  

💬 Join our Discord community (free!):   / discord  


▬ Support My Work ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

❤️ Support me on Patreon:   / ludicworlds  
☕ Buy me a coffee: https://ko-fi.com/ludicworlds

Thank you for your support!


▬ Timestamps ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

0:00 - Intro
1:14 - Adding the Ray Perception Sensor
2:14 - What is a Ray Perception Sensor?
2:57 - Why use a child GameObject?
4:16 - Configuring Detectable Tags
4:45 - How ray observations work
6:24 - Updating the TurtleAgent script
7:15 - Updating Behavior Parameters
8:20 - Sensor settings
11:45 - Training the agent
12:55 - Importing the trained model
13:30 - Testing in inference mode
14:30 - Comparing training results
15:47 - Outro


▬ Useful Links ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

► ML-Agents GitHub Repo: https://github.com/unity-technologies...
► ML-Agents documention: https://docs.unity3d.com/Packages/com...
► ML-Agents docs - RayPerceptionSensor: https://docs.unity3d.com/Packages/com...


▬ Credits ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

► Music by - CO.AG Music:    / @co.agmusic  

#unity #ai #mlagents #reinforcementlearning


На этой странице сайта вы можете посмотреть видео онлайн Unity ML-Agents: Using the Ray Perception Sensor длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Ludic Worlds 10 Апрель 2026, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 851 раз и оно понравилось 44 зрителям. Приятного просмотра!