PlaneHelper is error at some point

Description of the problem

PlaneHelper is error at some point.
Please take a look at this, during scanning, PlaneHelper will be in a wrong direction.
https://codepen.io/karoshi/pen/MPEJeG/
I looked at updateMatrixWorld function, and see this:
this.lookAt( this.plane.normal );
It seems a bug of lookAt function usage.

Three.js version
  • Dev
  • r97
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

2 thoughts on “PlaneHelper is error at some point

  1. PlaneHelper is designed to visualize a clipping plane.

    If this is its actual purpose, you should call it ClippingPlaneHelper.

Comments are closed.