Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

No way to set roll of spline in blueprint

The fancy new splines are beautiful, but there's currently no way to adjust the roll/banking of a splinepoint in blueprints (and neither in code I think).

The SetTangentAtSplinePoint takes a vector so no roll information is given there. And the SetDefaultUpVector changes the roll of the entire spline, not pieces of it.

Being able to set the roll of individual spline points would be really handy for rollercoasters etc.

Product Version: UE 4.9 Preview
more ▼

asked Aug 11 '15 at 09:06 PM in Bug Reports

avatar image

93 3 4 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Requios,

There is not currently a way to set the roll of a spline point, however we have a feature request in our system to improve upon spline manipulation over time.

Right now, you can set the rotation of the Spline Mesh Component that makes up the track. You can do this within blueprints and code. Basically you will need to get the tangent and distance of the spline and using math, calculate the correct rotation of the Spline Mesh Component.



more ▼

answered Aug 12 '15 at 05:02 PM

avatar image

41.1k 1009 183 493

avatar image Requios Aug 12 '15 at 08:19 PM

Thanks for the reply. I'm already using Spline Mesh Components and setting their roll with success, I'm just saying it would be cleaner to get and set that roll on the spline instead of a separate array. It works, but could be cleaner/easier :)

avatar image Creamshake Nov 06 '17 at 01:38 PM

I'm sorry for digging up an old thread, but this is exactly what I am trying to do and I have had no luck in finding any tutorial or anything that covers it. I have been trying to calculate the roll (start and end) of a spline mesh using the tangent of the spline, but i end up with a mess, could you please tell me how you did it?

avatar image Requios Nov 06 '17 at 02:55 PM

What I did for my rollercoaster is to not store the roll in the spline, but in a separate array. So for each spline point I also have data in an array, including roll. Then I call SetStartRoll and SetEndRoll on the spline mesh component with that separate data.

If you somehow managed to store roll in the spline itself then retrieving that is trivial: spline has GetRoll functions built-in.

avatar image Requios Nov 06 '17 at 04:32 PM

I looked at it some more and found that in the newer versions of the engine you can actually set the up vector of a spline at each point (SetUpVectorAtSplinePoint). A quick glance through the code reveals that this sets the rotation of a spline point. So you can rotate that up vector with how much roll you want, and that way you can store the roll in the spline itself.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question