Skip to content

Commit

Permalink
add comment about this.cam
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Aug 12, 2024
1 parent 27b5e95 commit e924510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ AFRAME.registerComponent('cursor-teleport', {
// camera
this.data.cameraHead.object3D.traverse((child) => {
if (child instanceof THREE.Camera) {
this.cam = child;
this.cam = child; // This is the PerspectiveCamera
}
});
this.camForRotation = this.data.cameraHead.object3D; // This is the Group, parent of the PerspectiveCamera
Expand Down

0 comments on commit e924510

Please sign in to comment.