lookAt method

BufferGeometry lookAt(
  1. Vector3 vector
)

vector - A world vector to look at.

Rotates the geometry to face a point in space. This is typically done as a one time operation, and not during a loop. Use lookAt for typical real-time mesh usage.

Implementation

BufferGeometry lookAt(Vector3 vector) {
  _bufferGeometryobj.lookAt(vector);
  _bufferGeometryobj.updateMatrix();
  applyMatrix4(_bufferGeometryobj.matrix);
  return this;
}