shots
A module script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2preseed/shots.module — camera shot evaluation for the demo director. A part exposes an ordered `shots` list; each shot interpolates the camera between two endpoints over `dur` seconds: { dur = 8, pos = { p0, p1 }, look = { l0, l1 }, fov = { 60, 45 }, ease = "smooth" } Positions are part-local (the director offsets them by the part's world center). `eval` walks the list by cumulative duration and returns the interpolated pos / look / fov for a local time t, clamping on the last shot.
clamp01(x: ?) → void
| arg | type | description |
|---|---|---|
| x | ? |
linear(x: ?) → void
| arg | type | description |
|---|---|---|
| x | ? |
smooth(x: ?) → void
| arg | type | description |
|---|---|---|
| x | ? |
out(x: ?) → void
| arg | type | description |
|---|---|---|
| x | ? |
inq(x: ?) → void
| arg | type | description |
|---|---|---|
| x | ? |
lerp(a: ?, b: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| b | ? | |
| t | ? |
v3lerp(a: ?, b: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| b | ? | |
| t | ? |
lookRotation(eye: ?, at: ?, upHint: ?) → void
Quaternion {x,y,z,w} orienting a -Z-forward camera at `eye` to look at `at`.
| arg | type | description |
|---|---|---|
| eye | ? | |
| at | ? | |
| upHint | ? |
walk(points: ?, u: number, lerp: ?) → void
Walk a list of keyframes as a polyline: `u` in 0..1 spans the whole list, whatever its length. Two keyframes are a straight move, which is what every two-point shot already was; more of them follow a path. A camera crossing ground that is not flat needs the path: a straight move between two points a few seconds apart cuts the chord under the terrain between them, and the shot spends its middle underground.
| arg | type | description |
|---|---|---|
| points | ? | |
| u | number | |
| lerp | ? |
lerpNumber(a: number, b: number, t: number) → number
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| t | number |
eval(shots: ?, t: ?) → void
Evaluate a shot list at local time t → pos, look, fov?, shotIndex, shotProgress.
| arg | type | description |
|---|---|---|
| shots | ? | |
| t | ? |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.