camera
The broadcast match camera for Bola na Rede: a high touchline camera that follows the ball with a lead, an intro sweep, a goal close-up, a shootout angle and a close style for phones (`match.setCameraStyle("close")`). Drives the scene active camera. Called by sim/match.
sim/camera
The broadcast match camera for Bola na Rede: a high touchline camera that follows the ball with a lead, an intro sweep, a goal close-up, a shootout angle and a close style for phones (match.setCameraStyle("close")). Drives the scene active camera. Called by sim/match.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2sim/camera: the match camera. Three framings, picked every frame: broadcast a touchline camera (about 40 degrees down) that tracks the ball with a lead towards where play is going and keeps the human's footballer in frame (desktop default); close the same side view, lower and tighter on ball and controlled player (landscape phones, touch screens, or the Close setting); portrait on tall screens (portrait phones) an end-on view from behind the human's team, attacking up the screen, so the long axis of the pitch runs along the long axis of the screen. `M.basis()` says which world directions screen right and screen up point to, which sim.humanInput turns the stick through. The intro sweeps in from high over the pitch; goals pull in on the scorer. Drives the scene's active camera (a Camera with no behaviour).
camEntity( ) → void
basis( ) → void
The world directions screen right and screen up point to this frame: { right: vector, up: vector }.
phoneLike( ) → boolean
Which framing "auto" means on this screen: close on touch or small screens.
aspect( ) → number
reset(match: ?) → void
Snap the camera on the next update.
| arg | type | description |
|---|---|---|
| match | ? |
framing(S: ?) → string
The framing in use: "broadcast" | "close" | "portrait".
| arg | type | description |
|---|---|---|
| S | ? |
setFov(e: ?, fov: number, S: ?) → void
| arg | type | description |
|---|---|---|
| e | ? | |
| fov | number | |
| S | ? |
update(match: ?, S: ?, dt: number) → void
Move the camera for this frame.
| arg | type | description |
|---|---|---|
| match | ? | |
| S | ? | |
| dt | number |
place(e: ?, cs: ?, pos: vector, look: vector, fov: number, dt: number, kPos: number, kLook: number) → void
Replay and walk-out shots (owner: replay helper; sim/replay calls them while it holds the match, so `update` above is not running)
| arg | type | description |
|---|---|---|
| e | ? | |
| cs | ? | |
| pos | vector | |
| look | vector | |
| fov | number | |
| dt | number | |
| kPos | number | |
| kLook | number |
replayShot(cs: any, shot: string, d: any, dt: number) → void
A goal replay shot. `cs` is the shot's own state table (new per shot), `shot` "scorer" (low, behind the scorer, chasing the ball to goal) or "goal" (behind the net, looking out at the ball), `d` = { ball, scorer?, goalX, sinceGoal }.
| arg | type | description |
|---|---|---|
| cs | any | |
| shot | string | |
| d | any | |
| dt | number |
walkoutShot(cs: any, t: number, d: any, dt: number) → void
The walk-out: a sweep over the stands, a low tracking shot beside the two lines, then the line-up from the front. `t` seconds since it began, `d` = { lead = vector (the front of the lines), total }.
| arg | type | description |
|---|---|---|
| cs | any | |
| t | number | |
| d | any | |
| dt | number |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
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.