0 votes

Decided to make a 3d person controller using the springarm node to control the comera rotation do it always focuses on the player.it works except for the fact that when I face the camera to its max height(90) or minimum (-90) the player starts flying when he is moving....he can even move on walls like it's the floor. It's really bugging me.i wanted to know if someone has had similar problems

Link to video showing the problem in action

in Engine by (161 points)

could you show the scriptt you're using ? that'll probably help solve the problem.

onready var head = $Head
onready var camera = $Head/Camera_bone/Camera

func input(event):
if event is InputEventMouseMotion:
degrees.y -= event.relative.x * MOUSESENSITIVITY
degrees.x -= event.relative.y * MOUSESENSITIVITY
degrees.x = clamp(head.rotation_degrees.x,-90,90)

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.