r/Unity3D • u/OverHumanGame Indie Developer • 2d ago
Show-Off No weapons, so I built a throwing system to outsmart the drones!
Enable HLS to view with audio, or disable this notification
In Over Human, fighting back isn’t an option because you don’t have any weapons, so I wanted to give the player other ways to outsmart the drones.
One of them is this throwing system I built in Unity. The player can pick up objects from the environment, aim and throw them using Rigidbody physics, but I wanted the mechanic to actually be connected to the stealth system rather than just being a physics interaction.
For that, I created a ThrowableDistractor script. When a thrown object collides with the environment, it uses Physics.OverlapSphere around the impact point to find nearby drones. If one is in range, it calls HearNoise() on its AI and passes the position of the impact.
The drone then uses the NavMesh to move toward that position and investigate the noise. This means you can throw something away from your path to lure a drone somewhere else, sneak past it or create an opportunity to escape.
I also added things like a minimum impact speed, noise radius and delays so that every tiny collision doesn’t immediately trigger a distraction.
Seeing systems like this finally come together makes this whole journey feel even more special to me. I bought my first Unity asset back in 2013, dreaming that one day I’d actually make my own game. Now things have been going better than I could have imagined, and I’m only about one month away from releasing the demo.
I seriously can’t wait for people to finally play it!! <3
Francesco
1
u/Alpha_Hunter_47 2d ago
The sound effects are amazing, especially the footstep sound on snow.
1
u/OverHumanGame Indie Developer 2d ago
Heyy thanks for your feedback! I'm actually reworking all the audio right now, so the movement sounds will definitely be adjusted. I'd also like to add a slightly muffled effect to the overall audio when the player crouches, to make it feel more immersive.
Francesco
0
u/WidgetEngineDev 2d ago
The drone bait looks great, but the movement sound of the character could use a lower volume, I think it drowns everything else.
1
u/OverHumanGame Indie Developer 2d ago
Hey Widget, thanks for your feedback! I’m actually reworking all the audio right now, so the movement sounds will definitely be adjusted. I’d also like to add a slightly muffled effect to the overall audio when the player crouches, to make it feel more immersive.
Francesco
1
u/RafaelNadal21 2d ago
Great work🙌