09-14-2023, 02:58 PM (This post was last modified: 09-14-2023, 03:32 PM by Antonio.)
I want to trigger a change in lanes at key Positions. I have two Lanes connected by two bridges. I have set a waypoint at 25.3 for one, using the On Position Reached List. when the swap of lanes occurs, how can I set different points for each spline instead a common for all splines?
Kind regards
Antonio
I could not run your project properly since you seem to have forgotten the script machine asset associated with the ship controller.
Regardless, I see three ways of implementing lanes. Assuming you are switching between a spline A and B:
Static switches: Add a spline C for each lane switch you want, and use the Connections feature to connect spline C with A and B. Then setup the controller to follow the connections. This is what is done for the example scene you based your scene on.
Dynamic switches 2: Doing the switch by implementing a custom switching logic. For example, have a controller on spline A, and one on Spline B. Depending on which spline is the current spline, make the visible object (the ship's mesh renderer) either be on the controller A, the controller B, or moving between them (via a position interpolation for example).
I hope this helped
Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance workâfeel free to reach out.