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"

Parallel Splines

I want to create a set of proceduraly made spline meshes that follow along a path made by another spline. I essentially want to build a set of parallel curves to a single central spline offset at a distance. But I'm not sure how I would go about doing the vector math to set each spline point location, rotation, and tangents. I already know how to find each original spline point and create a new second spline and create the same number of points.

Product Version: UE 4.9
more ▼

asked Oct 18 '15 at 07:51 PM in Blueprint Scripting

avatar image

38 4 7 9

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

1 answer: sort voted first

if you can get the rotation of a spline point, you can GetUpVector and GetRightVector of that rotation. if you multiply those by how much you want to offset X and Y, and add them together, you will get a point that is offset parallel to the original spline's orientation.

 so ( UpVector * OffsetY ) + ( RightVector * OffsetX )
more ▼

answered Oct 19 '15 at 11:32 AM

avatar image

9.6k 320 205 450

avatar image ATMA Oct 19 '15 at 06:43 PM

Thanks that put me in the right direction to solve this. Here's what my solution was: Code Result

avatar image guitarguy109 Jul 19 '16 at 12:25 AM

What did you use to calculate the Rail half distance variable?

avatar image Martin Zigler Feb 06 '17 at 05:23 PM

For me following worked. I Just needet it 2D THANK YOU, ScottSpadea !! ThatsNotImportandForTheProblem-JustToUnderstand


avatar image Elijah-Neverdie Sep 29 '18 at 03:17 PM

Actually, the right rail spline is not parallel to the root spline. It has the same Tangent at the same index point. the distance between each other is not same but only at the same index point

(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