Refactor engine to support double-precision vectors
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
#if USE_LARGE_WORLDS
|
||||
using Real = System.Double;
|
||||
#else
|
||||
using Real = System.Single;
|
||||
#endif
|
||||
|
||||
// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
@@ -143,7 +149,7 @@ namespace FlaxEditor.Viewport.Previews
|
||||
Task.ViewFlags = ViewFlags.DefaultAssetPreview;
|
||||
Task.AllowGlobalCustomPostFx = false;
|
||||
|
||||
var orbitRadius = 200.0f;
|
||||
Real orbitRadius = 200.0f;
|
||||
if (camera is ArcBallCamera arcBallCamera)
|
||||
orbitRadius = arcBallCamera.OrbitRadius;
|
||||
camera.SetArcBallView(new Quaternion(-0.08f, -0.92f, 0.31f, -0.23f), Vector3.Zero, orbitRadius);
|
||||
|
||||
Reference in New Issue
Block a user