Collision detection not working anymore

You have to use …geometry.attributes.position and geometry.attributes.normal to calculate ray position and direction on buffergeometry, you can utilise arrowHelper to visualize where rays are going from / to.