Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

GroupFramingOptions

Where the eye rests, how far findGroupFraming may move it, and its lens. Read only: the solve keeps nothing.

Property Type Default value Description
eye Vector3Like undefined Where the eye stands at rest.
heading Vector3Like undefined The way the eye looks along the ground: a level unit vector. The framing never turns it.
lens Pick<PerspectiveCamera, "fov" | "aspect"> undefined The lens: three.js’s fov, top to bottom, and the screen’s width over its height, as the camera the framing places holds them.
margin? number 0.08 The fraction of each half of the screen, from its middle to an edge, kept clear of every point: 0.1 keeps the outer tenth.
maxPitchRadians number undefined The farthest down the framing may tilt the eye, in radians down.
maxPull number undefined The farthest the framing pulls the eye back along its resting line of sight, back and up as the rest pitch looks down.
maxShift number undefined The farthest right the framing may slide the eye, in metres right.
minPitchRadians number undefined The farthest up the framing may tilt the eye, in radians down.
minShift number undefined The farthest left the framing may slide the eye, in metres right.
pitchRadians number undefined Radians the eye looks down at rest, negative up.
shift number undefined Metres right of the heading the eye stands at rest.