HardLookAt

Always looks straight at the target.

Rotates the camera so the target is always in the center of the screen. It's always instant. For a smooth look-at, use RotationComposer with damping.

Which way is up comes from the Body, for example from Follow's bindingMode.

Settings

SettingDescriptionDefault
targetWhat to look at. See Targets.

Usage

import { HardLookAtAim, targetPose } from '@pmndrs/klipp';

const player = targetPose.create(); // keep player.position up to date

camera.aim = new HardLookAtAim(player);