Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Aligning objects from points on spline
#3
If you don't know how to calculate that there's no way I will ever figure it out with my math unskills. Idea Hmm, maybe this is a good feature request for the future. An action that places an object at a fixed, linear distance from an other object on the spline. Sounds good? Big Grin

Anyway, to get this approximation info should I check the use cache button in get info action? Or is it something else or can you only do it by code?

I had a little trouble follow your example, but if you use that method wouldn't the result change a bit every frame? I don't want precision just for the sake of it, but to keep the two anchors at the same position from each other. If the distance changes every frame it will make the movement jittery and that's what I try to avoid.

Maybe this is what you said and I didn't get it, but how about this idea? On the frame the object spawn you get a center point from the object and align it to the spline as normal. Then from that position you get the closest point on the spline for each of the anchors and align them to the spline. Now every following frames you move these two points a fixed distance on the spline just as you would move a normal setup and then align the parent to the point in the center of them.
Would this keep them a fixed distance from each other, precise enough that the object doesn't jitter? Or am I completely off here?
Reply


Messages In This Thread
Aligning objects from points on spline - by Lupp_ - 02-18-2021, 04:08 PM
RE: Aligning objects from points on spline - by Lupp_ - 02-19-2021, 07:52 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_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 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_
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: