Move Code for Ski Dodge

PHOTO EMBED

Mon Mar 23 2026 09:32:52 GMT+0000 (Coordinated Universal Time)

Saved by @iliavial

extends RigidBody3D

@export var move_speed : float = 2.0

func _physics_process(delta: float) -> void:
	if Input.is_physical_key_pressed(KEY_LEFT):
		apply_force(Vector3.LEFT * move_speed)
	elif Input.is_physical_key_pressed():
		

func _on_body_entered(body: Node) -> void:
	if body.is_in_group("Tree"):
		get_tree().reload_current_scene()
content_copyCOPY