Hi,<br>I'm trying to rotate a 3D object with the left and right keys along the y axis.<br>However, it only rotates about 180 degrees each way before it won't rotate any more unless I press the opposite key.<br><br>If I change the axis to the z or x it works fine and keeps rotating<br><br>
if(Input.is_action_pressed("ui_left")):<br> rot=1<br>if(Input.is_action_pressed("ui_right")):<br> rot=-1<br>var rotat = get_rotation()<br>rotat.y += ( rot
delta)<br>set_rotation(rotat)<br>var t = get_transform()<br>t.origin -= t.basis[2](velocity.z*delta)<br>set_transform(t)
<br>Thanks for your help