Traces a projectile-like path through a level and reports its first collision.
Unlike traceLine, this understands the level topology and terrain. opaque is the
default for beams and sight, impassable is useful for movement and projectiles that can
cross transparent walls, and outside is useful when the requested target may be off-map.
The collision cell is included in cells, so a caller can apply an impact there before
deciding what the game should do with it.
Traces a projectile-like path through a level and reports its first collision.
Unlike
traceLine, this understands the level topology and terrain.opaqueis the default for beams and sight,impassableis useful for movement and projectiles that can cross transparent walls, andoutsideis useful when the requested target may be off-map. The collision cell is included incells, so a caller can apply an impact there before deciding what the game should do with it.