targets
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
targets
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.enemy.targets — the training range. Steel plates and paper silhouettes on posts, laid out at measured distances from a firing line, so a weapon can actually be evaluated: what a shot did, where it landed, and how long a magazine takes to put a plate down. EVERY HIT HERE IS REAL. A target is an entity the scene's collider carries, so `renderer.raycast` returns it by id when a round strikes it. Nothing is tested against a bounding box computed here, and nothing decides a hit from the shot's origin — the same trace that draws the tracer is the one that finds the plate. That is what makes this range evidence about the weapon rather than a separate model of it. Hit zones are separate entities. A head is a different plate on the same stand, so a head hit is a different entity arriving in the impact event — it is not a number compared against a height. The range runs down -Z from the firing line at z = +2, so the player spawns looking at it.
mats( ) → void
box(parent: ?, name: ?, pos: ?, size: ?, material: ?, rotY: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | ? | |
| pos | ? | |
| size | ? | |
| material | ? | |
| rotY | ? |
steelTarget(parent: ?, mats: ?, x: ?, z: ?, index: ?) → void
A steel plate on a post. Two plates: chest and head, each its own entity so a head hit arrives as a different id.
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| x | ? | |
| z | ? | |
| index | ? |
paperTarget(parent: ?, mats: ?, x: ?, z: ?, index: ?) → void
A paper silhouette on a frame, at a longer distance.
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| x | ? | |
| z | ? | |
| index | ? |
backstop(parent: ?, mats: ?, z: ?, halfWidth: ?) → void
The backstop: a bank of sandbags and a wall, so a round that misses is stopped and throws dust rather than flying off into the district.
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| z | ? | |
| halfWidth | ? |
build(root: ?) → void
Build the range under `root` and answer a lookup from entity id to the target a hit belongs to, which is what the director resolves an impact against.
| arg | type | description |
|---|---|---|
| root | ? |
add(rec: ?) → void
| arg | type | description |
|---|---|---|
| rec | ? |
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.