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
Usage
import { HardLookAtAim, targetPose } from '@pmndrs/klipp';
const player = targetPose.create(); // keep player.position up to date
camera.aim = new HardLookAtAim(player);
import { HardLookAtAimThree } from '@pmndrs/klipp/three';
camera.aim = new HardLookAtAimThree(player);
<VirtualCamera name="follow" priority={10}>
<Body.Follow target={playerRef} offset={[0, 3, 8]} damping={0.5} />
<Aim.HardLookAt target={playerRef} />
</VirtualCamera>
ref gives you the HardLookAtAimThree.