This method performs a static or swept collision test between this entity and the specified entity, or all objects in the nearby vicinity.
| Parameter | Description |
|---|---|
| entity | single entity to test collision with |
| position | for a swept collision test, the final position of this entity |
| rotation | for a swept collision test, the final rotation of this entity |
| hits | the maximum number of collisions that will be allowed to occur before the routine stops checking |
Returns a list of all collisions that are detected.