💻 Unity 2023 ML-Agents | Live AI Spider Training | CUDA | PyTorch | Part 3
Hello, p3ngu1nzz here, and welcome to another session.
This session we are going to work on the reward cube spawner for our spider game. We want to make sure that the spawner generates the right amount of treats for our spiders, depending on the number and size of the spiders in the arena. We also want to make the spawner more dynamic and random, so that the treats are not always in the same place.
We will use the Spawn Randomizer component from the ml-agents package to achieve this. The Spawn Randomizer component allows us to specify a range of positions and rotations for the spawner, as well as a spawn interval and a maximum number of objects to spawn. We will also use some simple math and logic to calculate the optimal number of treats for our spiders, based on their hunger level and their competition.
We will also add some sound effects and particle effects to make the spawner more interesting and engaging. We will use the Audio Source and Particle System components from Unity to do this. We will see how we can adjust the volume, pitch, and clip of the audio source, as well as the shape, size, color, and emission of the particle system.
This is the third video I am doing on this series, so please hit the like button if you enjoy watching our creepy crawly spider game develop. boo.
#unity #gamedev #ai #mlagents #spider #crawler #physic #2023 #visualstudio
Other Videos By p3nGu1nZz
Other Statistics
Unreal Statistics For p3nGu1nZz
At this time, p3nGu1nZz has 899 views for Unreal spread across 27 videos. His channel uploaded over 1 day worth of Unreal videos, or 4.14% of the total watchable video on p3nGu1nZz's YouTube channel.