dont normalize movement vector

This commit is contained in:
yuki 2025-11-24 03:45:47 -03:00
parent 5c6dc263c4
commit 1250b7a80a

View file

@ -9,7 +9,7 @@ func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void:
func _state_physics_update(_delta: float) -> void:
#region player physics
var direction: Vector2 = player.get_movement_vector()
direction = direction.normalized()
#direction = direction.normalized() # unneeded with 4 way movement
player.velocity = direction * player.max_speed * player.speed_mult
player.move_and_slide()