function placeShot
devtools/src/shots.ts:74
placeShot(shot: Composition, bodyRadius: number, toStar: Vec3, maxDistance: number, fovDeg: number) → ShotPlacement
Where the camera goes and what it looks at, in the body's frame.
- shotComposition
the composition
- bodyRadiusnumber
meters
- toStarVec3
unit vector from the body toward its star, body frame
- maxDistancenumber
ceiling on the camera's distance from the center, meters — the sphere-of-influence clamp, so a bookmark on a small moon does not park the ship outside the frame it is being parked in. The floor always wins: there is no composition from inside the ground.
- fovDegnumber
the field a
fillstandoff is solved against. Unused by a composition that names its standoff in radii, which is every one of the seven composed against a photograph — seecompositions.test.ts, which holds them to that.
ReturnsShotPlacement