Builtin Library
README.md
points.sphere (procNode)
Points in or on a sphere, even by volume (or by area on its surface), each carrying N: the way straight out from the centre. Use it for bursts, explosions and puffs, where N becomes a velocity.
Draws on channels 0 to 2 of the emit scope: u is the height on the unit sphere, then the angle around it, then the radial share points.shell_radius turns into a radius.
Built from: rand.unit, points.shell_radius, core.points, math.*.
Inputs
count(Float, default 256, at least 0). How many points. Each is drawn on its own, so raising this fills the same shape denser without moving the points already there.seed(Float, default 1). Which of the possible layouts this is; the same seed draws the same points on every run and platform.radius(Float, default 1). The sphere's radius.center(Vec3, default (0, 0, 0)). Where the shape stands.shell(Float, default 1, 0 to 1). How thick a skin of the shape the points fill, as a share of its radius: 1 fills it to the middle, 0 lays every point on its surface.
Outputs
points(Points).countpoints carryingP,N(unit) andid.
local burst = g.points.sphere({ count = 500, radius = 0.2, shell = 0 })