12-21-2015, 11:11 PM
Hi,
How do I trigger certain actions when a Spline Controller reaches a CP?
I tried reading CurvyDefaultEventHandler documents, but they are quite brief and don't go into typical usage scenario examples.
I want a Spline Controller to change its speed when it reaches certain Control Points on a curve. I tried to use the Event system of the Spline Controller but got a little lost on what to write in my script and how to hook up the events. The event system looks similar to how buttons work in the Unity 5 UI but I can't say I'm too familiar with that either.
Could someone give some hints on how to write a script that stores various speeds and then feeds them into the Spline Controller when certain CP's are reached?
Any help would be highly appreciated.
How do I trigger certain actions when a Spline Controller reaches a CP?
I tried reading CurvyDefaultEventHandler documents, but they are quite brief and don't go into typical usage scenario examples.
I want a Spline Controller to change its speed when it reaches certain Control Points on a curve. I tried to use the Event system of the Spline Controller but got a little lost on what to write in my script and how to hook up the events. The event system looks similar to how buttons work in the Unity 5 UI but I can't say I'm too familiar with that either.
Could someone give some hints on how to write a script that stores various speeds and then feeds them into the Spline Controller when certain CP's are reached?
Any help would be highly appreciated.