From 0abd953ded7c02f75e0f99d91cb808cd168b70e1 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sun, 9 Mar 2025 15:29:01 -0500 Subject: [PATCH] Better selection bounds for multi axis transform gizmo --- Source/Editor/Gizmo/TransformGizmoBase.Settings.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Gizmo/TransformGizmoBase.Settings.cs b/Source/Editor/Gizmo/TransformGizmoBase.Settings.cs index 5b54a7c79..9f1fb770a 100644 --- a/Source/Editor/Gizmo/TransformGizmoBase.Settings.cs +++ b/Source/Editor/Gizmo/TransformGizmoBase.Settings.cs @@ -35,12 +35,12 @@ namespace FlaxEditor.Gizmo /// /// The inner minimum of the multiscale /// - private const float InnerExtend = AxisOffset + 0.5f; + private const float InnerExtend = AxisOffset; /// /// The outer maximum of the multiscale /// - private const float OuterExtend = AxisOffset * 3.5f; + private const float OuterExtend = AxisOffset + 1.25f; // Cube with the size AxisThickness, then moves it along the axis (AxisThickness) and finally makes it really long (AxisLength) private BoundingBox XAxisBox = new BoundingBox(new Vector3(-AxisThickness), new Vector3(AxisThickness)).MakeOffsetted(AxisOffset * Vector3.UnitX).Merge(AxisLength * Vector3.UnitX);