Late Night Merge
This commit is contained in:
10
Collision/Scripts/PlayerMovement.gd
Normal file
10
Collision/Scripts/PlayerMovement.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends RigidBody3D
|
||||
|
||||
@export var move_speed : float = 2.0
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
|
||||
if Input.is_key_pressed(KEY_LEFT):
|
||||
linear_velocity.x = -move_speed
|
||||
if Input.is_key_pressed(KEY_RIGHT):
|
||||
linear_velocity.x = move_speed
|
||||
1
Collision/Scripts/PlayerMovement.gd.uid
Normal file
1
Collision/Scripts/PlayerMovement.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bebu3iw1v8h5t
|
||||
Reference in New Issue
Block a user