compositionLook

function compositionLook
compositions.ts:464
compositionLook(composition: Composition, position: Vec3, bodyRadius: number, sun: Vec3) → LookOffset

The free-look offset an aimed composition needs from the orbit arm's pose.

NO_LOOK for a center-aimed one, and by construction rather than by rounding: aimPoint returns the origin, the forward is the negated offset, and putting that back through the solve would return zeros to within an ulp rather than exactly. The nine drawn framings are all center-aimed, so this is also what keeps them bit-identical to the pose they had before free look existed.

compositionComposition
Undocumented
positionVec3
Undocumented
bodyRadiusnumber
Undocumented
sunVec3
Undocumented
ReturnsLookOffset