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"

What is the difference about the location type between the relative and world

Hi, guys. I usually simply think the object which keeps the member of transform marked the 'world' will be unaffected by movement, roration, and scaling from its parent. But being marked the 'relative' will result the opposite. Is this a correct understanding? Anything further could tips me? Thank you!

Product Version: UE 4.14
more ▼

asked Mar 23 '17 at 03:21 AM in C++ Programming

avatar image

26 6 6 9

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

1 answer: sort voted first

If I understand your question correctly, no, the transform of an Actor or Component is always modified by that of its parent. The difference is that the RelativeTransform is the transform relative to its parent, so if you move the parent, the kid will move with it (and the RelativeTransform will remain the same). The WorldTransform is just the absolute transform relative to the World.
So, for example, if these were nested Actors (simplifying with just Location):

  • ActorA WorldLocation(10, 2, 3)
    • ActorB RelativeLocation(-3, 2, 1) -> WorldLocation(7, 4, 4)
      • ActorC RelativeLocation(3, 1, -1) -> WorldLocation(10, 5, 3)

I hope it helps

more ▼

answered Mar 23 '17 at 05:26 AM

avatar image

322 10 4 13

avatar image cave_zf_586 Mar 23 '17 at 06:05 AM

I do appologize for my confusing title. So you mean there are two kind of transfrom created from Actor or Component. And finially the results reflect the same effect(change of world location)?

avatar image Muelas.Aitzol Mar 23 '17 at 06:39 AM

Oh, sorry, I just discovered the "Relative/World" setting on Transform property ;P Yeah, it defaults to "Relative", which is what I described above, but you can set it to "World", in which case it remains relative to the World, and does not move when its parent moves. So you were right to begin with, sorry about the confusion ;P I guess you learn something new every day!

avatar image cave_zf_586 Mar 23 '17 at 07:16 AM

Never mind, your comment is quite concise and to the point. The most important thing was that I certainly had my question. There is something like this that is confusing at the conceptual undderstanding. For this reason, I want to know not only how to use it, but also how it works. Thanks again for your answers! All the best to you.

(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