Stair spline BP with deformation on certain axis

Hello. So I’m pretty new to blueprints and can’t figure out how to exclude a certain axis when setting the start and end tangents of a spline mesh. I’d like to have a mesh deform with the spline, but only on X and Y, and retain the step like structure as shown with the bottom mesh. Any help would be greatly appreciated.

Hi modimist,

If you want each step to retain it’s original shape - just use normal static meshes rather than spline static meshes.

Hey RecourseDesign,

I may have mistyped, as far as I can tell I am using a static mesh, not a spline mesh… I think. This is the deform spline graph I’m trying to make the step functionality work with.

Okay, gave that a go and seeing the issue with combining the two, but not finding an alternative for the “set start and end”, as the Target no longer works. Also not sure if I should split struct and just be grabbing Z rotation? Might of went over my head a bit, sorry!

You don’t need the Start/Stop at all - that “Relative Transform” is all you need.

Regarding the rotation - you may need to experiment with that, using GetRotationAtDistanceAlongSpline may give better results: (I just used AtSplinePoint() for eg)

Hmm, yeah still no deformation. Seem to lose it if I don’t use the “set start and end” node.

I’m sorry, I thought you were trying to remove the deformation.

In that case, just have the code as you originally had it, but in the End Location - use the Start Locations Z value.

image

I feel bad for wasting your time now!

1 Like

Oh no worries! I’m just happy to be getting a response on here, so thank you!

As for your last message, definitely a step in the right direction. Looks fine from the top and is deforming, but from the side, still a bit wonky and not like stairs/steps. Any ideas?

Yeah, I think you’ll need to set the y tangent (I think it will be y, maybe x) to 0.0 on both start and stop - I’m guessing now though…

This is the only way I could think to make X or Y zero. Not sure if thats what you meant, but either way, no luck fixing it with that. Eh, I’ll keep trying things and see where I get. Thanks again for all the help!

1 Like

No idea what made it work, best guess is not connecting the Z vector for the tangents.

1 Like

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