Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to change the look direction of a character at end of path
I tried 


private void Listener(CurvySplineMoveEventArgs arg0)
    //transform.Rotate(transform.rotation.x,180, transform.rotation.z);
    transform.rotation = Quaternion.Euler(transform.rotation.x,180, transform.rotation.z);

in SplineController..

I get the callback but the object never rotates?
The controllers control the object's transform, so any modification to the transform will get overriden at the next update call of the controller. To change the orientation, I recommand you to modify the Direction parameter of the controller. If you want to do further modifications on the transform, then you will have to disable your controller while running your own logic, or use a custom controller (that overrides BaseController or any of its children classes) that will incorporate in its logic the logic you want to apply.
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.

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to expand/contract path? Ferdinand 5 20 10-12-2022, 02:31 PM
Last Post: _Aka_
Brick Delete CurvySplineSegment from the start of a Spline causes UV's to change studentloan 5 7 06-14-2022, 03:14 PM
Last Post: _Aka_
  Can I change splines directly on runner controller via script? sikamaru 1 10 03-12-2022, 08:40 PM
Last Post: _Aka_
Question Spline path "Range" option: how to go from end to start CP? niuage 4 12 03-07-2022, 10:48 AM
Last Post: niuage

Forum Jump: