i am making a first person game in three.js. i want to show some sort of movement in the gun when the player moves or fires. i am extremely new to three.js and know absolutely nothing about animation in three.js using the animationmixer. currently i am doing this in the most primitive way possible. i am simply adding a frames variable to the gun and increasing it in every new game update. based on the update i am simply using sine to change the y-position of the game and give it some movements.
this method is good when the animations are sort and doesnt have to do advanced stuff like recoil and picking up some item. how do handle this kind of animations in three.js?