In this section, we will introduce the left hand. The left hand will be used to throw the grenade. So, first we will need to create a linear animation of the left hand. However, this time, we will not interpolate over position but over rotation. Then, we will chain animations. When the animation of the left hand ends, we will start the animation of the grenade.
We want to throw the grenade when the Enter key is pressed. Let's first go over the class to handle the animation of the left hand.
LeftHand.js file from the
primitive/game folder of the ...