Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/core/Object3D.js>Object3D#lookAt

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method Object3D.prototype.lookAt
import { Object3D } from "https://deno.land/x/threejs_4_deno@v121/src/core/Object3D.js";

Rotates object to face point in space.

Parameters

vector: Vector3 | number

A world vector to look at.

optional
y: number
optional
z: number