Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Sphere.h |
Include |
#include "Chaos/Sphere.h" |
Use the golden spiral method to evenly distribute points on a sphere.
The "golden" part is derived from the golden ratio; stand at the center, turn a golden ratio of whole turns, then emit a point in that direction.
Points are generated starting from the bottom of the sphere, ending at the top. Contiguous entries in `Points_ generally will not be spatially adjacent.
Points_ to append to.
Center is the center of the sphere. `Radius is the radius of the sphere. NumPoints_ is the number of points to generate.
BottomHalf causes the bottom half of the sphere to be generated, starting at `Center - (0, 0, Radius_).
TopHalf causes the top half of the sphere to be generated, starting at `Center. SpiralSeed_ is the starting index for golden spiral generation. When using this method to continue a spiral started elsewhere,
SpiralSeed_ should equal the number of particles already created.