axisIndex property

AxisIndex axisIndex
getter/setter pair

Axis to sort the bodies along. Set to 0 for x axis, and 1 for y axis. For best performance, pick the axis where bodies are most distributed.

Implementation

late AxisIndex axisIndex = AxisIndex.x;