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