From b03c1650547bb1915156b159526d7b4969943cfb Mon Sep 17 00:00:00 2001 From: mafiesto4 Date: Mon, 7 Jan 2019 21:14:13 +0100 Subject: [PATCH] Fix transform gizmo rotation in World mode --- FlaxEditor/Gizmo/TransformGizmo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlaxEditor/Gizmo/TransformGizmo.cs b/FlaxEditor/Gizmo/TransformGizmo.cs index be2778a5..56e045a6 100644 --- a/FlaxEditor/Gizmo/TransformGizmo.cs +++ b/FlaxEditor/Gizmo/TransformGizmo.cs @@ -176,7 +176,7 @@ private void UpdateMatricies() // Create both world matrices _objectOrientedWorld = _screenScaleMatrix * Matrix.CreateWorld(Position, _localForward, _localUp); - _axisAlignedWorld = _screenScaleMatrix * Matrix.CreateWorld(Position, Vector3.Forward, Vector3.Up); + _axisAlignedWorld = _screenScaleMatrix * Matrix.CreateWorld(Position, Vector3.Backward, Vector3.Up); // Assign world if (_activeTransformSpace == TransformSpace.World)