07-20-2018, 04:50 PM
Hi,
There are no proper guidelines defined, but here are some advises if you need to setup your own controller behavior:
Have a nice day.
There are no proper guidelines defined, but here are some advises if you need to setup your own controller behavior:
- Avoid modifying CurvyController: inherit from the class instead, and modify whatever aspect you need by overriding the available methods. This will avoid you handling conflicts if CurvyController is modified in an upcoming update.
- ComputeTargetPositionAndRotation is the method to override if you want to have a custom orientation logic.
- If you have your own logic to define the controller's position (like the easing you want to implement), you should make sure that the controller doesn't update the position too. You can do this by simply setting the controller speed to 0, or by overriding Advance (and SimulateAdvance if you use the OffsetCompensation feature)
- The method to override if you want to drastically change the controller's behavior is InitializedApplyDeltaTime.
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.