repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 44ec4703e5966499866c575220caf3f838daf53c:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 44ec4703e5966499866c575220caf3f838daf53c
Author: James Baicoianu 
Date:   Thu Oct 17 17:18:24 2024 -0700

    Fix undefined head

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
index c16ddb2450adf1c9228710099089e5687e7b2524..
index ..ccb11535fa74c4f45f54fee911229771b21b93f1 100644
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -315,7 +315,7 @@ document.body.dispatchEvent(click);
           this.ghost.setHeadOrientation(_tmpquat.multiplyQuaternions(this.neck.orientation._target, this.head.orientation._target), true);
           if (this.ghost._target.head) {
             //this.ghost._target.face.position.copy(this.head.position);
-            this.ghost.head.orientation.copy(this.head.orientation).multiply(this.neck.orientation);;
+            this.ghost._target.head.orientation.copy(this.head.orientation).multiply(this.neck.orientation);;
           }
         }
       }

-----END OF PAGE-----