repo: janusweb action: commit revision: path_from: revision_from: a9234d9c405a4c8079bb398f1ebc72bebf358bd0: path_to: revision_to:
commit a9234d9c405a4c8079bb398f1ebc72bebf358bd0 Author: James BaicoianuDate: Wed Aug 5 11:53:29 2020 -0700 Link rotation uses degrees diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -767,9 +767,9 @@ elation.require([
if (!hasReciprocalLink) {
// If no reciprocal link was found, spawn one so we can find our way back
let linkrot = this.spawnpoint.rotation.clone();
- linkrot.x *= THREE.Math.RAD2DEG;
- linkrot.y = (linkrot.y * THREE.Math.RAD2DEG) + 180;
- linkrot.z *= THREE.Math.RAD2DEG;
+ //linkrot.x *= THREE.Math.RAD2DEG;
+ linkrot.y = linkrot.y + 180;
+ //linkrot.z *= THREE.Math.RAD2DEG;
let linkpos = this.spawnpoint.localToWorld(V(0,0,player.fatness/2));
this.createObject('link', {
pos: linkpos,
-----END OF PAGE-----