GRIM: Discard the distance on the z axis when checking collisions.
(cherry picked from commit 6c5e610681011c3772253e7de45ad24b82f91318)
GRIM: Check collisions with invisible actors too. Fix #578.
(cherry picked from commit c4877882299958d69b8c694fcafda027f4e1cb2e)