@julian_beides Good question! In this example, I'm treating white as solid terrain, so zero-length collisions happen immediately when performed out of bounds. But, determination of solidness happens on a per ray basis, so I could see the "solid" condition being flipped based on where the ray originates, to get edge detection no matter where the ray starts. Hope that answers your question!