Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with, around, or against SplineController
#2
Hi,

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.
Did these points answer your question?
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.
Reply


Messages In This Thread
RE: Working with, around, or against SplineController - by _Aka_ - 07-20-2018, 04:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Issues when working with in-place prefabs Sacryn 4 6 02-27-2024, 04:08 PM
Last Post: _Aka_
Photo Position in Input Spots not working on all directions. Mike Danielsson 2 10 09-03-2022, 02:22 PM
Last Post: Mike Danielsson
Wink In SplineController OnPositionReachedList Event is missing shimizu 2 13 02-07-2022, 12:47 PM
Last Post: shimizu
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 24 01-17-2022, 01:39 PM
Last Post: _Aka_

Forum Jump: