Skip to content

Commit 3eb3583

Browse files
author
Léna Voinchet
committed
Fix mesh rotation bug
1 parent 096c7bc commit 3eb3583

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

js/UI/NodeUI.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ class NodeUI {
146146
if (coord === "x") {
147147
node[transformType === "pos" ? "xPos" : "xRot"] = valueInBaseUnits;
148148
} else if (coord === "y") {
149-
console.log("rotation y");
150149
node[transformType === "pos" ? "yPos" : "yRot"] = valueInBaseUnits;
151150
} else if (coord === "z") {
152151
node[transformType === "pos" ? "zPos" : "zRot"] = valueInBaseUnits;

js/scene/objects/sensors/Node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class Node{
187187
}
188188
if (this.mesh) {
189189
this.mesh.position.copy(newPos);
190-
this.mesh.rotation.set(this.xRot, this.yRot, this.zRot, 'YXZ');
190+
this.mesh.rotation.set(this.xRot, this.zRot, this.yRot);
191191
}
192192
this.updateTextPositions();
193193
if (this.cameraPerspectiveHelper) {

0 commit comments

Comments
 (0)