Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controller/Spline flipping object
#1
Hi,

I have what I think is a very simple spline. It has 6 points, and all of them are on the XY plane. None are rotated. However, when using a Spline Controller, at around 0.77 tf, my controlled object flips orientation by 180 deg, and soon flips back at about 0.77 to it's correct orientation.

Any ideas to what would cause this?

Thanks.
Reply
#2
Ah, on inspection I see that there is a "twist" in the spline!

[Image: CJ7WmK.jpg]

This is very strange, as here are the point coordinates:

point
0      0,0,0
1      0,50,0
2      0,100,0
3      50,200,0
4      50,300,0
5      0,400,0
6      0,450,0
7      0,500,0
8      0,1000,0

The twist occurs between point 6 and 7.
Reply
#3
Hi
You can set explicitly the orientation of a spline at a specific control point by rotating said control point after having set its Orientation Anchor parameter to true. More information here: https://curvyeditor.com/documentation/sp...ion_anchor
Did this help?
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#4
Not really. The problem is the kink. I guess this is a property of splines (Catmull). I wasn't expecting a radical twist like there is. I was expecting things to be smooth.

I'll just have to reposition the control points to get what I want...

Thanks.
Reply
#5
Hi

Yeah I see what you mean. Indeed it is how Catmull splines are. You can use a TCB spline instead. Those splines have 3 settings, Tension, Continuity and Bias. A TCB having 0 as a value for those three parameters is a Catmull. I tried with a Tension of 0.25, and it seems that the issue does not happen with this value. Try different values, or even Bezier splines, that might give splines behaving as you would expect.

I hope this helped. Let me know if you need further help.
If and when you feel like it, please leave a review for the asset, that helps a lot
Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Morph game object along curve. mikechr2000 5 229 02-04-2025, 09:30 PM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 97 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 354 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 121 01-02-2025, 09:58 AM
Last Post: _Aka_

Forum Jump: