09-17-2023, 08:23 PM
Hi
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:
Have a nice day
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 1: Dynamically switch between spline A and B using the SwitchTo method. This is what is done in the example scene Space Runner, where you can switch when both lanes are next to each other.
The documentation of said method: https://api.curvyeditor.com/FluffyUnderware.Curvy.Controllers.SplineController.html#FluffyUnderware_Curvy_Controllers_SplineController_SwitchTo_FluffyUnderware_Curvy_CurvySpline_System_Single_System_Single_
- 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).
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.