Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage pursuitKit.package·originates fromworld 0a0b119f-a…

grab

The moment of capture, made readable: a telegraphed reach on foot, a closing box

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

grab

The moment of capture, made readable: a telegraphed reach on foot, a closing box

round a vehicle. Neither is a distance check that fires at once.

On foot each pursuer has a Reach: in range with a clear line it winds up (the animation and sound hook); when
the windup ends the grab lands only if the suspect is still inside the escape distance with a clear line,
otherwise it misses and the pursuer recovers before trying again.

  local Grab = require("~.modules.grab")
  local reach = Grab.reach(cfg.grab)
  local phase, event = reach:tick(dt, distance, hasLine, factor?)
  -- factor (default 1) scales the reach and the escape distance: a suspect who cannot run is easier to take
  -- phase: "idle" | "windup" | "recover"; event: nil | "windup" | "hit" | "miss" | "ready"
  reach:progress()      -- 0..1 through the windup (drives the HUD flash and the arm's blend)
  reach:cancel()        -- the pursuer was stunned or blinded

In a vehicle the suspect is boxed when it is nearly stopped with a pursuer close for long enough:

  local box = Grab.box(cfg.grab.vehicle)
  local progress, done = box:tick(dt, speed, nearestPursuerDistance)   -- 0..1, true when it completes

The interface is documented in the header of init.luau; this file repeats it for the asset browser.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

pursuitKit.modules.grab — the moment of capture, made readable: a telegraphed reach on foot, a closing box round a vehicle. Neither is a distance check that fires at once. On foot each pursuer has a Reach: in range with a clear line it winds up (the animation and sound hook); when the windup ends the grab lands only if the suspect is still inside the escape distance with a clear line, otherwise it misses and the pursuer recovers before trying again. local Grab = require("~.modules.grab") local reach = Grab.reach(cfg.grab) local phase, event = reach:tick(dt, distance, hasLine, factor?) -- factor (default 1) scales the reach and the escape distance: a suspect who cannot run is easier to take -- phase: "idle" | "windup" | "recover"; event: nil | "windup" | "hit" | "miss" | "ready" reach:progress() -- 0..1 through the windup (drives the HUD flash and the arm's blend) reach:cancel() -- the pursuer was stunned or blinded In a vehicle the suspect is boxed when it is nearly stopped with a pursuer close for long enough: local box = Grab.box(cfg.grab.vehicle) local progress, done = box:tick(dt, speed, nearestPursuerDistance) -- 0..1, true when it completes

reach(cfg: any) → any

A reach for one pursuer.

argtypedescription
cfgany

tick(dt: number, distance: number, hasLine: boolean, factor: number?) → void

Advance one pursuer's reach. Returns the phase and, on the tick something happens, an event.

argtypedescription
dtnumber
distancenumber
hasLineboolean
factornumber?

progress( ) → number

How far through the windup this reach is (0 outside a windup).

cancel( ) → void

Abort a windup (the pursuer was blinded or knocked). It recovers before reaching again.

reset( ) → void

box(cfg: any) → any

A box-in tracker for the suspect's vehicle.

argtypedescription
cfgany

tick(dt: number, speed: number, nearest: number) → void

Advance the box. It fills while the vehicle is slower than `speedBelow` with a pursuer within `within`, and empties twice as fast otherwise. Returns progress 0..1 and whether it has just completed.

argtypedescription
dtnumber
speednumber
nearestnumber

reset( ) → void

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.