02-13-2023, 09:35 AM
Hi
CurvySpline.ControlPoints is the list of your control points. They are gameobjects, so you can use Unity's API on them to get their data. Then just use any Unity compatible logic you would have used with any other Unity objects to detect if objects are next to another object.
CurvyController also has events, that you can use like any other Unity event to get notified if specific events happened, in this case if the controller reached a specific position.
Have a nice day
CurvySpline.ControlPoints is the list of your control points. They are gameobjects, so you can use Unity's API on them to get their data. Then just use any Unity compatible logic you would have used with any other Unity objects to detect if objects are next to another object.
CurvyController also has events, that you can use like any other Unity event to get notified if specific events happened, in this case if the controller reached a specific position.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.