Unity Tutorial | How To Create Head Shots And Detect Different Parts of the Body
#Unity #Programming #FPS #unitytutorial #PackerGames
What's up YouTube? In this video I show you a simple method to creating headshots and detecting different parts of an object when shooting it. This is helpful when creating shooter projects that need a complex health system for characters, or different animations based on where an object is shot.
TimeStamps:
00:00 - Intro
01:09 - hit.transform.SendMessage()
04:00 - SendMessage Error
06:05 - Adding Health
09:25 - Just A Side Note
If this video helped in any way please be sure to leave a like.👍
Questions, comments, concerns? Leave a comment and I'll get back to you.
Some great information on RayCasts & SendMessage below:
https://docs.unity3d.com/ScriptReference/Physics.Raycast.html
https://docs.unity3d.com/ScriptReference/GameObject.SendMessage.html
Check out my website for updated content on my projects:
https://www.packergaming.com/
Packer Games, where dreams are built one line of code at a time.
Other Videos By Packer Games
2023-05-31 | Splitgate Clutch Kills | Team Deathmatch |
2023-05-30 | Zombies In My Neighborhood | Devlog Ep. 2 | Setting Up Shop |
2023-05-28 | Packer Bros Smash Bros | 2V4 CPU Lvl 8 | Team Battle |
2023-05-26 | Need For Speed Underground 2 | Edit Of My Garage | Nostalgia Night |
2023-05-25 | This Game Took 10 Years Off My Life | Emily Wants To Play Too | My First Stream! |
2023-05-24 | Weapons Specialist | Low-Poly Gun Package For Unity |
2023-05-24 | Packer Bros Smash Bros | Link Vs. MewTwo | Best 2 Out Of 3 |
2023-05-23 | Packer Bros Smash Bros | Zero Suit Samus Vs. Ike | Best 2 Out Of 3 |
2023-05-22 | Zombies In My Neighborhood | Devlog Ep. 1 | Introduction |
2023-05-19 | Veiled Experts Team DeathMatch | One Of My First Few Matches | A Close Victory |
2023-05-19 | Unity Tutorial | How To Create Head Shots And Detect Different Parts of the Body |
2023-05-18 | Free For All Battle Against Computer | Do I Survive??? |
2023-05-17 | Blender Tip | Change Point Of Origin And Fix Object Rotation |