Fixed the line collision bug. Now its working

Subscribers:
1,260
Published on ● Video Link: https://www.youtube.com/watch?v=BHnRta-AMzg



Duration: 1:42
37 views
2


So I had this bug that sometimes had bad collision detection against lines. depending on the angle of velocity vector with the line direction. The small the angle, the greater penetration. I spent a while trying out different methods and found one that gave 100% perfect collision, like my ball vs ball and ball vs plane. Now that this is working, I can finally implement mesh detection. I have all 3 components to do SphereRay vs triangles. which consist of points, edges and a plane