I'm attempting to verify whether an object (this.target
) is facing towards a particular position (newPosition
). Here's what I currently have:
new THREE.Matrix4().lookAt( newPosition, this.target.position, this.target.up ) == this.target.matrix
However, it seems that this approach isn't working. What is the correct way to determine if an Object3D is looking at a specific position?