What it does
decal.getNear reads Near on a decal object. It takes x, y, z and radius.
Signature
decal.getNear(x, y, z, radius)Arguments
xyzradius
Example · generated
function update(dt) { const near = decal.getNear(0, 2, 0, 1);}decal.getNear is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.