diff --git a/example/src/controls/PointerTracker.js b/example/src/controls/PointerTracker.js index e33028282..2dcaf53a2 100644 --- a/example/src/controls/PointerTracker.js +++ b/example/src/controls/PointerTracker.js @@ -118,8 +118,8 @@ export class PointerTracker { const id0 = this.pointerOrder[ 0 ]; const id1 = this.pointerOrder[ 1 ]; - const p0 = this.pointerPositions[ id0 ]; - const p1 = this.pointerPositions[ id1 ]; + const p0 = pointerPositions[ id0 ]; + const p1 = pointerPositions[ id1 ]; target.addVectors( p0, p1 ).multiplyScalar( 0.5 ); return target;