See OverlapSphereCommand, SpherecastCommand and so on.

Fix The supplied results buffer is too small, there should be at least maxHits space per each command in the batch.

See fix here