Graphics Reference
In-Depth Information
For instance, you can use this to make sure
THREE.SpotLight
always illuminates
a specific object. Or, if you're creating animations, you could use this effect to make
sure one character is always looking at the face of a different character.
See also
• As the
lookAt
function uses matrix transformations to point one object to
another, you could also do this without making use of the
lookAt
function.
For this, you'll have to create a transformation matrix yourself. We've ex-
plained how to do this in the
Applying matrix transformations
recipe, which
you can find in
Chapter 2
,
Geometries and Meshes
.