Polarith AI
1.8

◆ CreateCircle()

static PlanarSensor CreateCircle ( int  receptorCount,
float  radius,
PlanarOrientationType  planarOrientation = PlanarOrientationType.PlaneXY 
)
static

Constructs a radial sensor shape so that its receptors has got the same position (when the given radius is 0) with their directions arranged in a circle pointing outside.

Metaphorically, this looks like a comic sun with rays.

Parameters
receptorCountThe number of receptors the created circle shape gets.
radiusThe radius of the created circle shape.
planarOrientationOptionally, specifies how this sensor is oriented with respect to a virtual axis-aligned plane.
Returns
The constructed circle shape.
Exceptions
DivideByZeroExceptionIf receptorCount is 0.
Imprint