Skip to content

Commit

Permalink
set radius limits to not clamp fidelity test configurations (google#1255
Browse files Browse the repository at this point in the history
)
  • Loading branch information
elalish authored Jun 8, 2020
1 parent 645f3ab commit 9aa6888
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
modelViewer.src = scenario.model;
modelViewer.skyboxImage = scenario.lighting;
const {theta, phi, radius} = scenario.orbit;
modelViewer.minCameraOrbit = `auto auto ${radius}m`;
modelViewer.maxCameraOrbit = `auto auto ${radius}m`;
modelViewer.cameraOrbit = `${theta}deg ${phi}deg ${radius}m`;
const {x, y, z} = scenario.target;
modelViewer.cameraTarget = `${x}m ${y}m ${z}m`;
Expand Down

0 comments on commit 9aa6888

Please sign in to comment.