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 to do a local (relative) transform in Blueprint?

I have two Blueprints placed in the world. One of the is set as the "root" of the other:

alt text

So, when I edit the second blueprints´ transform, it is adjusted relative to the first ones:

alt text

eg. my first blueprint is rotated in the world, so it´s local x direction is not the worlds x direction, and when I edit the second ones x location, it is transform in the (rotated) direction. This is great btw, it´s exaclty what I want.

Now I want to apply the transformation of the second one within the level blueprint. But I want to do it exactly like in the editor, so the transform is relative to the first blueprint. But how can I do that???

alt text This is my first try: Composing the world transform of the first blueprint with another transform, and applying it to the second blueprint. But the problem is, the transform then is not done relative to the (rotated) coordinate system of the first blueprint, but only to the world coordinate system.

Product Version: UE 4.18
Tags:
more ▼

asked Oct 29 '18 at 09:37 AM in Blueprint Scripting

avatar image

DaKenpachi
74 3 6 9

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Ok I figured it out. I just needed to swap the inputs of Compose Transforms. I guess Transform A is first applied and then Transform B.

Swapped inputs of Compose Transforms

So first, the wanted relative transform (say 1 cm in X direction) is applied, and afterwards the whole translation and rotation of the first blueprint - which makes the first transform relative to the second one.

more ▼

answered Oct 30 '18 at 09:34 AM

avatar image

DaKenpachi
74 3 6 9

(comments are locked)
10|2000 characters needed characters left
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