axisIndex property
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;
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.
late AxisIndex axisIndex = AxisIndex.x;