0 votes

After following an fps controller tutorial on youtube, the character can now walk in all directions and jump and also look in all directions. But my head would somehow turn downwards until my entire camera spins an entire circle! There is a piece of code that I think could fix this issue, but it doesn't seem to work. The piece of code is: head.rotation.x = clamp(head.rotation.x, deg2rad(-90), deg2rad(90)). I don't think there is a problem with this code.

Godot version 3.4.2.stable.official
in Engine by (16 points)

1 Answer

0 votes

did you defined joy stick in your game input ?

by (56 points)
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.