How it works...

We use the Animation Event in the Draw animation to find the moment where our character reaches for the weapon attached to the character's belt. In this event, we change the parent of the weapon to attach it to the hand or to the belt (depending on whether our character is drawing or sheathing the weapon). We additionally use the Lerp() method to adjust or match the position and rotation of our weapon with appropriate slots in the character (the Hand Marker and the Sheath Marker). This way our Draw animation doesn't have to perfectly match with the desired positions of the weapon. It makes it easier to use the same animation for a wider range of different weapons.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.137.7