Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
Fix transform gizmo rotation in World mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiesto4 committed Jan 7, 2019
1 parent 06f6a02 commit b03c165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlaxEditor/Gizmo/TransformGizmo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b03c165

Please sign in to comment.