Unity Tutorial | How To Create Head Shots And Detect Different Parts of the Body

Channel:
Subscribers:
13
Published on ● Video Link: https://www.youtube.com/watch?v=xtoDcHlweh0



Category:
Tutorial
Duration: 10:27
66 views
2


#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.







Tags:
#Unity
#Programming
#FPS
#unitytutorial
#PackerGames