Skip to content

Commit 45633bb

Browse files
author
Léna Voinchet
committed
Default : lidars without rays
1 parent 074d7ce commit 45633bb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ <h1 id="website-title">Augmenta Designer (beta)</h1>
413413

414414
<!-- LIDARS RAYS BUTTON -->
415415
<div id="display-lidars-rays-button" class="button main-button">
416-
<span id="display-lidars-rays-button-icon" class="iconify main-icon" data-icon="akar-icons:eye-open"></span>
416+
<span id="display-lidars-rays-button-icon" class="iconify main-icon" data-icon="akar-icons:eye-slashed"></span>
417417
<p id="display-lidars-rays-button-text">LiDARs rays</p>
418418
</div>
419419

js/scene/objects/sensors/Lidar.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Lidar{
4848
this.buildRays(sizeDetected);
4949

5050
this.lidarAppear = true;
51-
this.toggleRaysToShape = true;
51+
this.toggleRaysToShape = false;
5252

5353
// Initialize position and rotation
5454
const commonPosition = new Vector3(this.xPos, this.zPos, this.yPos);
@@ -62,6 +62,10 @@ class Lidar{
6262
this.raysShapeHelper.rotation.z = commonRotationZ;
6363
this.raysShapeHelper.visible = !this.toggleRaysToShape;
6464
}
65+
66+
if (this.rays) {
67+
this.rays.visible = this.toggleRaysToShape;
68+
}
6569
}
6670

6771
/* BUILDERS */

0 commit comments

Comments
 (0)