x

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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

How can I rotate a line trace array?

Hello Unreal Community!

I have a blueprint question that has me stumped. I'm creating an editable grid for placing windows on a building using blueprints.

alt text

The For Loop generates a 2D array and uses line traces to snap the windows to the surface and align them to the normals of the mesh as seen here:

alt text

However, when I rotate the building, the line traces stay in place causing the windows to rotate incorrectly. How can I apply a rotation to the line trace array so that it can be controlled in my blueprint?

Thanks for the help!!

Product Version: UE 4.17
Tags:
working.jpg (30.8 kB)
more ▼

asked Aug 23 '17 at 08:17 PM in Blueprint Scripting

avatar image

The Pedullist
1 1 5

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

2 answers: sort voted first

I solved my issue by multiplying the x axis value that created space between the items in the array by thy right vector of an empty scene component. Image attached for reference if anyone needs a similar solution. alt text

more ▼

answered Aug 28 '17 at 02:44 PM

avatar image

The Pedullist
1 1 5

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

Why not add the windows as child actor components to the building mesh? Then it becomes an issue of child management and rotation will follow accordingly when the parent rotated the children rotate correctly.

more ▼

answered Aug 25 '17 at 08:35 PM

avatar image

cmarston74
296 6 7 10

(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