Godot Version
4.2.2
Question
I have a model for a weapon in my game, and I want to be able to make it spin when shot, I know how to implement that through a script. My main issue is that when I go to the animation player to actually animate this, I can't seem to find anything that would let me rotate it directly up and down, rather than side to side.
How do you rotate it “side-to-side”?
Sorry I should clarify, imagine a dot and my weapon model rotating around the dot. Thats what happens when I use the z & y axis when rotating it. I cant just do it directly up or down.
The z-axis is front to back for a model. The x-axis is right to left, and the y-axis is up and down. If you wanted to rotate the model like you were flipping the gun in your hand (which is what I assume you mean by “up and down”), it would rotate along the x-axis.
The AnimationPlayer is immaterial to the discussion.