SortBodiesRightLeft
arcade.SortBodiesRightLeft (Class)
Provides a stable merge sort implementation for sorting Body arrays from right to left (by x coordinate).
This implementation maintains the order of equal elements and is optimized specifically for arcade.Body instances.
Static Members
Sorts the array of bodies from left to right based on their x position.
This operation modifies the array in place and preserves the order of bodies with equal x positions.
| Name |
Type |
Description |
a |
Array<Body> |
The array of bodies to sort. |
Private Members