ProtoFlux:Random Point In Cone

From Resonite Wiki
Random Point In Cone
Height
*
BaseRadius
Point

The Random Point In Cone node returns a random point within the bounds of a cone with the given Height and BaseRadius centered at [0; 0; 0].

This node is a random node. Random nodes generate a new output every time they are accessed during an impulse chain, even if during the same frame. To reuse the same value for multiple impulse nodes, you must write the value to a Local, Store, or Data Model Store before operating on it.

Inputs

Height (float)

The height of the cone.

BaseRadius (float)

The radius of the circle base of the cone.

Outputs

* (float3)

A random point inside the specified cone. The center of the cone is at [0; 0; 0], making the y field anywhere between -BaseHeight/2 and +BaseHeight/2, where the former is the circle side and the latter is the tip side.