Minor cleanup.
parent
e2c9b14560
commit
6008876da4
|
@ -37,8 +37,6 @@ func _process(_delta):
|
||||||
animation_tree.set("parameters/conditions/interact", false)
|
animation_tree.set("parameters/conditions/interact", false)
|
||||||
|
|
||||||
func _handle_input() -> void:
|
func _handle_input() -> void:
|
||||||
# Get the input direction and handle the movement/deceleration.
|
|
||||||
# As good practice, you should replace UI actions with custom gameplay actions.
|
|
||||||
var input_dir = Input.get_vector("walk_left", "walk_right", "walk_forward", "walk_back")
|
var input_dir = Input.get_vector("walk_left", "walk_right", "walk_forward", "walk_back")
|
||||||
var direction = Vector3(input_dir.x, 0, input_dir.y).normalized()
|
var direction = Vector3(input_dir.x, 0, input_dir.y).normalized()
|
||||||
if direction:
|
if direction:
|
||||||
|
|
Loading…
Reference in New Issue