Springarm issues

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ogeeice

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

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

dustin | 2020-06-27 16:39

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

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

Ogeeice | 2020-06-28 00:29