GetContactEntities /Box2D physics

bool GetContactEntities(vector2 a, vector2 b, ETHEntityArray &outArray)

Copies into &outArray a handle to every entity-body that intersects the line segment whose end points are a and b.

Notice that the intersection tests are only performed on entities that have physics-simulated bodies.