Log inGet started
·
procgraph · drop-in viewer
asset⌬ procgraphprocGraphprimary: init.luau·part ofpackage effectShowcase.package·originates fromworld 0fc7535e-6…

impact.procGraph

A round striking a hard surface: a flash, a spray of sparks thrown back off it that fall and cool, a burst of dust and grit that billows and settles, and a flicker of light on the surface.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 2mo ago
What it does

impact

A round striking a hard surface: a flash, a spray of sparks thrown back off it that fall and cool, a burst of dust and grit that billows and settles, and a flicker of light on the surface.

Fire it where the round lands, with the effect's -Z turned along the normal of the surface it struck, and let it go when it ends:

-- `graph` is this graph's reference: the AssetRef `asset.resolve` or a search returns for it.
local function hitEffect(position, normal)
    local e = entity.spawn("impact", { position = position, temporary = true })
    e:lookAt({ position[1] + normal[1], position[2] + normal[2], position[3] + normal[3] })
    e.component.add("Generator", { graph = graph, playOn = "load", ending = "hold" })
    e.component.get("Generator").events.onFinished:connect(function()
        e:despawn()
    end)
    return e
end
InputDefaultWhat it does
size1How big the strike is: 1 a rifle round on concrete, 3 a heavy round, 0.4 a pistol.
light1Strength of the light it throws, as a multiple of the default.

Set them with the Generator's params, e.g. params = { size = 3 }. It plays 66 frames at 60 fps (1.1 s). Every play with the same params plays the frames the first one cooked.

Interface

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

conforms to

zero/source-extract/v2

impact — a round striking a hard surface. A flash at the point of impact, a spray of sparks thrown back off the surface that fall and cool, a burst of dust and grit that billows out and settles, and a light that flickers on the surface for an instant. The surface's normal runs along -Z: play it at the hit point with `direction` the normal of the surface it struck.

scaled(name: string, points: any, dims: any) → any

Every layer is simulated at size 1, then its positions and sizes are multiplied by `size`.

argtypedescription
namestring
pointsany
dimsany

drawn(name: string, points: any, shader: string, blend: string, properties: any?) → any

argtypedescription
namestring
pointsany
shaderstring
blendstring
propertiesany?
⌬ Metadata
cost{"cookMs":443,"gpuMs":0.2,"measuredOn":"native debug build, headless, on an empty stage in edit mode. `vramBytes` is the peak rise in renderer.gpuMemory() (compute, instances, meshes, textures) over an idle baseline while one play runs from an empty cook cache: its solvers, its instanced draws and the frames its cache holds. `cookMs` is that play's cook time over every frame (playback().cost.cookMs); a play fired while one holds the frames, or after, replays them. `gpuMs` is the peak rise in the frame's measured GPU time over the same baseline, whose own spread is about 0.2 ms, so it is the bound that instrument supports.","vramBytes":317000}descriptionA round striking a hard surface: a flash, a spray of sparks thrown back off it that fall and cool, a burst of dust that billows and settles, and a flicker of light, with the surface normal along -Z.familycombatkindeffect

Problems

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

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬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.