Replaced hardcoded spline points with first two raycast intersection points on click. Computed the middle control point using the incenter of a triangle formed with the midpoint as the third vertex, creating a dynamic Bézier curve.