12 lines
482 B
GDScript
12 lines
482 B
GDScript
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 )
|