Documentation / Node reference / code nodes
code/BoidVelocity3D
Returns how a point's velocity changes to flock with the others.
Simulation
In a compute shader, returns the velocity change of a point this step, from every other point's position and velocity v. Near points push apart, farther ones match direction, the farthest pull together. separation, alignment and cohesion add up to the reach.
Parameters
| Name | Type | What it does |
|---|---|---|
| separation | Float | Share of the reach where points push apart. |
| alignment | Float | Share of the reach where points match direction. |
| cohesion | Float | Share of the reach where points pull together. |
| position | AttributeName | Attribute holding the positions. |
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.