Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline controller orientation
#1
Hey ! 

First, thank you for this amazing asset, I think it's very well made and it fits my needs perfectly, good job !

I have a small question regarding the Orientation of the spline controller. 
Currently, my spline controller is oriented like this (green lines) :

[Image: E9vipqN.png]

As you can see, it's orientation doesn't follow the spline perfectly.
I'd like to know if there is a way to orient my controller perfectly toward the spline. (Green lines should almost merge with the spline)

Here my are my parameters: 

[Image: CWHGvFA.png]

I setup my controller on the spline using:

Code:
float nearestPoint = refSplineController.Spline.GetNearestPointTF(transform.position, Space.World);

refSplineController.Position = nearestPoint;


Thanks you and please let me know if you need any additional information.
Reply
#2
Hi
Thank you for the praise.
The tangents indeed look weird. Can you please send me the exported spline (the import/export menu), or the scene, or the project? Thanks
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Hey,
Thanks to your hint I was able to make it work by recreating a new spline.
I'll send you the wrong spline if you need to investigate more.

Thank you for the quick answer, I'll be sure to leave a review !
Have a good day
Reply
#4
Thank you
Yes please, send me the one with the problem, I will have a look at it
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
Hi
After taking a look at your spline, I believe the issue is from the small number of cache points, which leads to the cached tangents not being precise. Increasing the number of cache points will solve the issue.
Improving the calculation of cached tangents for splines not densely cached enough is something I am planning to fix in the future.
Thanks for reporting the issue, and 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


Possibly Related Threads…
Thread Author Replies Views Last Post
Brick Delete CurvySplineSegment from the start of a Spline causes UV's to change studentloan 5 6 06-14-2022, 03:14 PM
Last Post: _Aka_
  Obstacle Moving Along the spline Chanon 1 5 06-13-2022, 04:13 PM
Last Post: _Aka_
Information Common reasons why your spline gizmo is invisble _Aka_ 0 1 05-20-2022, 03:56 PM
Last Post: _Aka_
  Connect two spline at runtime Doomchecker 2 7 05-18-2022, 04:12 PM
Last Post: Doomchecker

Forum Jump: