08-14-2023, 04:21 PM
Since only part of spline that can trigger collision is Mesh (FluffyUnderware.Curvy.Generator.CGMeshResource) how to get reference to its root (Generator) and Spline Path when collision with other object occurs?
Doing otherCollider.gameObject.transform.root.GetComponentInChildren<CurvySpline>() can result in multiple object for detecting Spline Path since same component is present in Spline Shape.
On the other hand root of Spline can be other gameobject (not Generator and it is not component) so false positive is possible.
Doing otherCollider.gameObject.transform.root.GetComponentInChildren<CurvySpline>() can result in multiple object for detecting Spline Path since same component is present in Spline Shape.
On the other hand root of Spline can be other gameobject (not Generator and it is not component) so false positive is possible.