khanat-assets---3d-godot-cl.../previewer/previewer.gd

13 lines
482 B
GDScript3
Raw Normal View History

extends Spatial
func _process( delta ):
if Input.is_action_pressed("move_forward"):
$dummy/camera_stand.translate( Vector3( 0.0, 0.0,-10.0*delta ) )
if Input.is_action_pressed("move_backward"):
$dummy/camera_stand.translate( Vector3( 0.0, 0.0, 10.0*delta ) )
if Input.is_action_pressed("move_left"):
$dummy/camera_stand.rotate_y( 1.0*delta )
if Input.is_action_pressed("move_right"):
$dummy/camera_stand.rotate_y( -1.0*delta )