0 votes

I am currently working on an fps. I would now like to make a weapon swaying. I don't know how to do it. I found this:

https://docs.godotengine.org/en/3.2/tutorials/math/interpolation.html

I probably need the parameters of the spatial or the camera attached to it. The player is FPV.

Is there a function that gives the number of degrees when the player (spatial) looks up and down and left and right?

in Engine by (80 points)
reshown by

1 Answer

0 votes

Can you make a weapon with animation and attach that to the camera node in the scene? That would create a weapon sway for a first person shooter, correct?

by (130 points)

Yes that's true. However, I want a more specific weapon swaying. When I turn left, I want the gun to pull slightly. Do you understand what I mean?

I would like to do this with "linear_inpolate", as explained on this website (2D): https://docs.godotengine.org/en/3.2/tutorials/math/interpolation.html

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.