Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check Spline collisions (Pathfinding)
#5
So If I understand correctly, you want the controller at the end of the spline to look at the last cp's orientation instead of the tangent of the spline at the end of the spline. Right?

If so, the only way I think about needs coding:
You can use the OnEndReach event of the controller to disable the controller once it reaches the end of the spline, and then orient your controller however you like.
You can also modify the code of the controller/override the controller's code, and add a special case when the controller reaches the end of a spline (RelativePosition == 1) in the code defining the orientation. A good entry point would be the method ComputeTargetPositionAndRotation
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
Check Spline collisions (Pathfinding) - by Hukha - 03-23-2020, 10:26 AM
RE: Check Spline collisions (Pathfinding) - by _Aka_ - 03-24-2020, 02:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 4 03-27-2024, 07:25 AM
Last Post: amutp
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: