X-Git-Url: http://git.purplebirdman.com/frog-ninja.git/blobdiff_plain/992458ba0caf1d218a85c4bf10e48fd304c85626..df26d4a32e30692efba3fb3b7270501dc005bbff:/asset/character/model/state/dashing_state.gd diff --git a/asset/character/model/state/dashing_state.gd b/asset/character/model/state/dashing_state.gd index 2931f96..0c6ea9e 100644 --- a/asset/character/model/state/dashing_state.gd +++ b/asset/character/model/state/dashing_state.gd @@ -29,7 +29,7 @@ func update(input: InputPacket, delta: float): if input.player_movement_direction == Vector2.ZERO: dir = Vector2(player.last_movement_vector.x, player.last_movement_vector.z) else: - dir = input.player_movement_direction + dir = input.player_movement_direction.normalized() new_position = player.global_position + Vector3(dir.x, 0, dir.y) * dash_length rotate_skin(new_position)