From 9692c07da902eb2836cf7d0429bf1e6f89af9b3e Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Thu, 21 Nov 2024 10:03:48 +0800 Subject: [PATCH] chore: free flight handler cleanup --- .../free_flight_camera_delegate.dart | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/thermion_dart/lib/src/input/src/implementations/free_flight_camera_delegate.dart b/thermion_dart/lib/src/input/src/implementations/free_flight_camera_delegate.dart index 5a78f578..6ea8e4e4 100644 --- a/thermion_dart/lib/src/input/src/implementations/free_flight_camera_delegate.dart +++ b/thermion_dart/lib/src/input/src/implementations/free_flight_camera_delegate.dart @@ -135,21 +135,4 @@ class FreeFlightInputHandlerDelegate implements InputHandlerDelegate { _executing = false; } - Vector3 _constrainPosition(Vector3 position) { - if (minBounds != null) { - position.x = position.x.clamp(minBounds!.x, double.infinity); - position.y = position.y.clamp(minBounds!.y, double.infinity); - position.z = position.z.clamp(minBounds!.z, double.infinity); - } - if (maxBounds != null) { - position.x = position.x.clamp(double.negativeInfinity, maxBounds!.x); - position.y = position.y.clamp(double.negativeInfinity, maxBounds!.y); - position.z = position.z.clamp(double.negativeInfinity, maxBounds!.z); - } - - if (clampY != null) { - position.y = clampY!; - } - return position; - } }