im making a fps i have the movement scripts and made a gun movement script so the gun moves realistically but i need someone to tell me how i would make the gun move when i jump of something like it will bob down then come back up but i want to know how i would do that thanks sorry if you dont understand its abit hard to explain oh and its in javascript by the way.
If you’re doing animations I always find it helpful to approximate the movement in real life and think about how you move: Get a pen and hold it like a gun then jump off something. You may look a little silly doing it but its worth it if you get better animations.
I would use an animation of the gun going down then coming back up, I’d use a boolean to check when the player jumps and when set true the animation would play, and put the animation on layer 2 so it has priority over any other animations you are using like head bobbing, walking, idle … ect