lookToward

function lookToward
observer.ts:241
lookToward(forward: Vec3) → LookOffset

The look offset that aims the camera along forward, in the camera's axes.

The inverse of turn, and the reason the aimed compositions can be expressed at all: a limb or a specular point is a place on the sphere, and what the pose needs is the two angles that put it in the middle of the frame. Solved in the base camera's own axes, so the caller's only job is to rotate the direction into them.

atan2(−x, −z) rather than atan2(x, z) because −Z is forward: the naive pair is off by a half turn, which aims the camera at the antipode of the point it was asked for and reads as the composition having no effect at all.

forwardVec3
Undocumented
ReturnsLookOffset