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"

How would i replace a component with another component based on two anchor point subcomponents

So i have this blueprint working when the object i am trying to adjust is at zero rotation in the editor. But if i rotate it say 90 degrees, it throws the calculation out. It probably has something to do with the forward vector of the original object, but i'm not sure how to allow for that. Here is the blueprint. The idea is i am trying to replace a component in game, and as the root component of a BP has no transform, i have added anchor scene components to the objects and am using them as an anchor to replace the component. Ie, grab current objects anchor, replace object with new blueprint, set new object to the same position as the old based on each objects anchor. In this BP, the variable RoomAnchorPrevious is the world transform of the original objects anchor.

alt text

Product Version: UE 4.17
Tags:
solved.png (156.4 kB)
more ▼

asked Dec 19 '17 at 09:09 AM in Blueprint Scripting

avatar image

michaelbaggott
3 1 3 5

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

1 answer: sort voted first

Nevermind, this is working now, i just set the anchor to position 0,0,0 relative to it's parent component and it works

more ▼

answered Dec 20 '17 at 04:45 AM

avatar image

michaelbaggott
3 1 3 5

(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