09-19-2018, 10:52 AM
You add a script that contains the code I already wrote you in this previous post:
(08-28-2018, 01:25 PM)_Aka_ Wrote: Hi,
To give you an example of code linking inputs to Curvy:
As you can see, it is very simple code. The controllers (script that move objects) have the needed properties, you just have to fill them accordingly to the user inputs.Code://Set the moving object's speed
splineController.Speed = MaxSpeedParameter + Mathf.Abs(Input.GetAxis("Vertical"));
//Set the moving object's direction
splineController.MovementDirection = Input.GetAxis("Horizontal") >= 0 ? MovementDirection.Forward : MovementDirection.Backward;
More about controllers here: https://curvyeditor.com/documentation/controllers
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.