Just wanted to update on the topic. After implementing the ability to cast convex shapes, I have changed the .raycastFirst()
method to .sphereCast()
. This eliminated the need in checking secondary segments. Also, switched to native pc.Curve()
to do the same thing without a need in third party bezier library.
1 Like