mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-13 21:31:05 -05:00
22 lines
568 B
GDScript
22 lines
568 B
GDScript
extends Node3D
|
|
|
|
var cameraRotation : bool = true
|
|
|
|
func _process(delta):
|
|
if cameraRotation == true:
|
|
rotation.y += 1.0*delta
|
|
else:
|
|
if Input.is_action_pressed("cameraLeft"):
|
|
rotation.y -= 1.0*delta
|
|
if Input.is_action_pressed("cameraRight"):
|
|
rotation.y += 1.0*delta
|
|
if Input.is_action_pressed("cameraUp"):
|
|
rotation.x -= 1.0*delta
|
|
if Input.is_action_pressed("cameraDown"):
|
|
rotation.x += 1.0*delta
|
|
if Input.is_action_just_pressed("camera"):
|
|
cameraRotation = !cameraRotation
|
|
if Input.is_action_just_pressed("reset"):
|
|
rotation.y = 0
|
|
rotation.x = 0
|