13 lines
482 B
GDScript3
13 lines
482 B
GDScript3
|
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 )
|