Black Ops III

GeneratePointsAroundCenter

generate uniformly distributed points around a center in 2D (XY) plane

Example:

array = GeneratePointsAroundCenter( enemy.origin, 500, 80, 100, 40, (-0.3,0,0) )

Parameters

ParameterSummary
*originPosition to start the search around.
*maxSearchRadiusthe maximum radius away from origin.
*innerSpacingthe distance between points at the minRadius.
[minRadius]the minimum radius away from origin. should be between 0 and maxRadius (both inclusive).
[outerSpacing]if defined, the distance between points will be Lerped from to [outerSpacing], to create a gradual distribution from minRadius to maxRadius.
[distributionBias](vec2) if defined, the density of the points will be changed gradually along the direction of this vector. the magnitude will be use as scalar, with 1 being the norm scale.

* = mandatory