Jason Dixon

Setting up the ability to use IK rigging in unity requires the use of a preview package, at least at the time of writing this 25/06/2021

Add the Animation Rigging package to unity through the package manager, if you cannot find it, it may still be in preview build which…

--

--

Using raycast is an effective way of calculating hits for guns.

To do that we need to start our ray from a point on the screen, we are using slightly off centre for our simulation, so we make ourselves a variable to store this vector. we also make ourselves a variable to store our ray and rayhit.

Then using an if statement we check if our raycast hits anything of value for a response, in this case anything with an IDamagable inheritance script. if we find it we are dealing damage, and instantiating a bloodsplatter effect at the point of hit, then starting a corutine which will stop us shooting for a short period of time.

--

--