Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -402,13 +402,13 @@ class CameraControl3D(gr.HTML):
|
|
| 402 |
azimuthHandle.position.set(AZIMUTH_RADIUS * Math.sin(azRad), 0.05, AZIMUTH_RADIUS * Math.cos(azRad));
|
| 403 |
elevationHandle.position.set(-0.8, ELEVATION_RADIUS * Math.sin(elRad) + CENTER.y, ELEVATION_RADIUS * Math.cos(elRad));
|
| 404 |
|
| 405 |
-
const orangeDist = distance
|
| 406 |
distanceHandle.position.set(
|
| 407 |
orangeDist * Math.sin(azRad) * Math.cos(elRad),
|
| 408 |
orangeDist * Math.sin(elRad) + CENTER.y,
|
| 409 |
orangeDist * Math.cos(azRad) * Math.cos(elRad)
|
| 410 |
);
|
| 411 |
-
distanceLineGeo.setFromPoints([
|
| 412 |
|
| 413 |
// Update prompt
|
| 414 |
const azSnap = snapToNearest(azimuthAngle, azimuthSteps);
|
|
|
|
| 402 |
azimuthHandle.position.set(AZIMUTH_RADIUS * Math.sin(azRad), 0.05, AZIMUTH_RADIUS * Math.cos(azRad));
|
| 403 |
elevationHandle.position.set(-0.8, ELEVATION_RADIUS * Math.sin(elRad) + CENTER.y, ELEVATION_RADIUS * Math.cos(elRad));
|
| 404 |
|
| 405 |
+
const orangeDist = distance - 0.5;
|
| 406 |
distanceHandle.position.set(
|
| 407 |
orangeDist * Math.sin(azRad) * Math.cos(elRad),
|
| 408 |
orangeDist * Math.sin(elRad) + CENTER.y,
|
| 409 |
orangeDist * Math.cos(azRad) * Math.cos(elRad)
|
| 410 |
);
|
| 411 |
+
distanceLineGeo.setFromPoints([cameraGroup.position.clone(), CENTER.clone()]);
|
| 412 |
|
| 413 |
// Update prompt
|
| 414 |
const azSnap = snapToNearest(azimuthAngle, azimuthSteps);
|