Cleanup 5
This commit is contained in:
@@ -46,8 +46,7 @@ namespace FlaxEditor.Gizmo
|
||||
|
||||
// Transform ray into local space of the gizmo
|
||||
Ray localRay;
|
||||
Matrix invGizmoWorld;
|
||||
Matrix.Invert(ref _gizmoWorld, out invGizmoWorld);
|
||||
Matrix.Invert(ref _gizmoWorld, out Matrix invGizmoWorld);
|
||||
Vector3.TransformNormal(ref ray.Direction, ref invGizmoWorld, out localRay.Direction);
|
||||
Vector3.Transform(ref ray.Position, ref invGizmoWorld, out localRay.Position);
|
||||
|
||||
|
||||
@@ -157,9 +157,8 @@ namespace FlaxEditor.Gizmo
|
||||
_screenScale = vLength.Length / GizmoScaleFactor * gizmoSize;
|
||||
Matrix.Scaling(_screenScale, out _screenScaleMatrix);
|
||||
|
||||
Matrix rotation;
|
||||
Quaternion orientation = GetSelectedObject(0).Orientation;
|
||||
Matrix.RotationQuaternion(ref orientation, out rotation);
|
||||
Matrix.RotationQuaternion(ref orientation, out Matrix rotation);
|
||||
_localForward = rotation.Forward;
|
||||
_localUp = rotation.Up;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user