Splines - Static point to curve point

Im trying to get a smooth transition here, the first couple of points are static, since I dont want them to wiggle about the base… and the rest should be curve or linear… but this happens:

Screenshot 2024-08-05 083118

so many options, not sure what can fix it. setting tangents? how does that work? is it rotation related?

is it rotation related?

Direction to be exact. Do you need to do it in editor or dynamically, run-time?


  • editor:

Or punch it in:

image

  • dynamically, you’d modify it like so:


Note, this is all in local space.

Thank you that worked. It was curving towards one direction, so i added a SET ROTATION AT SPLINE POINT and set the x roll to 90.00

But now it seems the spline line itself is fine, but the mesh doesn’t follow the spline line.

Screenshot 2024-08-07 092805
Screenshot 2024-08-07 093040

Whenever you update the spline, you must update the SMCs as well.

How is that done? .

You’re doing it already, probably in the Construction Script - that’s how the Spline Mesh Components are usually added initially. If you want to update them later on, run-time - when the spline shapes changes, you’d run the same script again but rather than adding new SMCs, you’d use the SMCs added in the CS.

@Everynone I’m working with a Marketplace asset, so I cant post the screenshots of how its built. But if I’m reading this correctly, the whole thing is being updated every tick. Because as the spline is being built by the player, the splines next point is under the mouse, and as the player moves the mouse around, the spline extends to that point in real time to show the preview of where the spline will look if the player clicks the mouse button to place the next point.

It’s a pretty common thing to do. Hook up the script that updates the SMCs to Tick - note that this will get somewhat costly if the spline has many segments.

If the spline positon changes, you must update the SMCs with new transforms and tangents.

I finally figured it out after 5 hours. It was the spacing between those first points prior to the one that has the Custom Tangent you had me modify. I guess it needed a certain amount of spacing to stop wiggling the previous points.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.