Because I am still concerned about performance, I want to investigate whether I can replace my raycasts for colliders.
I was thinking about thin, long box colliders in the form of triggers. I could then set for example this.contact to true on collisionstart and false on collisionend. However, I foresee problems when another obstacle already has been hit at that moment.
How can I best tackle this, or should I keep the raycasts?