Tweaks again ...

This commit is contained in:
Jean-Baptiste Perrier
2021-03-06 13:19:49 +01:00
parent ae3ce49b92
commit a82c669504
2 changed files with 7 additions and 13 deletions

View File

@@ -147,9 +147,7 @@ namespace FlaxEditor.Viewport.Cameras
if (Viewport.UseOrthographicProjection)
{
Vector3 offset = Vector3.Forward * orientation;
offset.Negate();
position = sphere.Center + offset * (sphere.Radius * 5.0f);
position = sphere.Center + Vector3.Backward * orientation * (sphere.Radius * 5.0f);
Viewport.OrthographicScale = Vector3.Distance(position, sphere.Center) / 1000;
}
else