If I have multiple game objects in a row (with boxCollider2D and a RigidBody2D), and a gameObject that shoots a RigidBody2D.cast (and saves it to an array rather then a single RayCastHit2D[ ]) then the order of the array will be from the closest to the furthest. But, what if I have something like this:
Note: the green gameObject shoots the rb.cast, and it is shooting it to the right and the 2 white gameObjects have the same x value.
The cast will hit both of them at the same time, so witch gameObject is going to be stored first? the bottom one? the upper one? or is it random?
