0 votes

extends Spatial

var mousesens = 0.1
var camera
anglev=0
func input(event):
if event is InputEventMouseMotion:
$Camera.rotate
y(deg2rad(-event.relative.xmouse_sens))
var changev=-event.relative.y
mousesens
if camera
anglev+changev>-50 and cameraanglev+changev<50:
camera
anglev+=changev

        rotation.y = clamp(rotation.y, deg2rad(-50.0), deg2rad(50.0))
Godot version v3.2.3 windows 64 bits
in Engine by (12 points)

What behavior are you experiencing?

the rotation never stops as much as i move the mouse as much the rotation is going i even tried other digits nothing worked

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.