Menu
The term spline and track spline are used interchangeably throughout the docks, but they both refer to the same thing; the spline that a track is built on and that a train carriage will travel along. Splines have a start and end, Splines have a length. As you travel along a spline you are at a distance on that spline. Get Spline Length - This node will get the target spline's length in Unreal units from beginning point to end point. Get Location at Distance Along Spline - This node will use a spline asset you assign. It will take the amount of length along your spline (float value) and produce a Vector 3D value.
Posted by2 years ago
Archived
Help: Physics along a spline?
Hi guys, I'm having some trouble with moving a craft along a spline.
It's a side scroller Lunar Lander type game except using 3 dimensions so it can turn corners etc...
I have seen tutorials for following a spline as a character, where left and right increase and decrease the Distance along Spline.
And have managed to do it by finding the closest location on spline to world location but this doesn't work particularly well with the physics as it speeds up on bends and any bend over 90 degrees is a no no.
Essentially what I would like to do is replace Y with a spline, I have done this on paper and it worked until I started thinking about collisions... Now the whole idea is pointless as crashing is kind of a big deal.
Would anyone be able to help please? It's driving me crazy and I seem to be writing off a notepad a day.
Thanks in advance!
79% Upvoted
Posted by2 years ago
Archived
Help: Physics along a spline?
Hi guys, I'm having some trouble with moving a craft along a spline.
It's a side scroller Lunar Lander type game except using 3 dimensions so it can turn corners etc...
I have seen tutorials for following a spline as a character, where left and right increase and decrease the Distance along Spline.
And have managed to do it by finding the closest location on spline to world location but this doesn't work particularly well with the physics as it speeds up on bends and any bend over 90 degrees is a no no.
Essentially what I would like to do is replace Y with a spline, I have done this on paper and it worked until I started thinking about collisions... Now the whole idea is pointless as crashing is kind of a big deal.
Would anyone be able to help please? It's driving me crazy and I seem to be writing off a notepad a day.
Thanks in advance!
79% Upvoted