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"

How to get Roll at spline point using local t param at segment of spline?

alt textHello there. Here is a deal. I have spline with n segments. Blueprint function "Get roll at time along spline" setting "t" parameter from 0 to 1 along all spline and returning roll at point. I need to get roll using local t parametr on segments. For example: 't' will change from 0 to 1 not along spline. It will changing from 0 to 1 at spline segment. How to do this?

Product Version: UE 4.11
more ▼

asked Jun 09 '16 at 06:52 PM in Blueprint Scripting

avatar image

3 1 3 4

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

1 answer: sort voted first

I've figured out something, check this:

If you want to get spline Roll at 0.5 (or any other from [0.0-1.0] range) time between spline points, let's name them point A and point B, then:

  1. Get distance of point A and point B and save the values in A_Distance and B_Distance variables

  2. Create a Get Roll at Distance Along Spline node for your spline

  3. In the 'Distance' node input plug in a Lerp node

  4. In Lerp node, into 'A' input plug in your A_Distance variable and into 'B' input plug in your B_Distance variable. Into 'Alpha' input plug in your desired time, from 0.0 to 1.0.

This way you will get a roll at time between two specified spline points.

more ▼

answered Jun 09 '16 at 08:55 PM

avatar image

2k 157 153 208

avatar image Am4zingHors3 Jun 09 '16 at 11:10 PM

Thank you very much:) It works perfect!

(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