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"

Is it possible to derive the location of an actor's top?

MyActor->GetLocation() will return the transform of that actor's pivot, which is what I want 90% of the time, but there are cases where I really need the model's top, e.g. the highest z coordinate it occupies- is there any simple way to get one from the other?

Product Version: UE 4.8
Tags:
more ▼

asked Aug 02 '15 at 05:31 AM in C++ Programming

avatar image

HInoue
251 97 67 83

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

1 answer: sort voted first

Yes, to find the size of any mesh you can use "Get Component Bounds" node. This returns 3 sets of numbers (can't remember all 3, not at PC) but one is the Extent. Extent is usually half height from pivot. Characters typically have their pivot at the feet so I'm not quite sure what the number will return, just test it and print the different values. Should be easy to solve if you know ahead of time the actual size. But Get Component Bounds should be what you are looking for.

more ▼

answered Aug 02 '15 at 05:43 AM

avatar image

jtsmith
1.4k 70 29 92

avatar image HInoue Aug 02 '15 at 05:49 AM

Thank you so much! I'd mark both of these correct, if the system let me :)

avatar image jtsmith Aug 02 '15 at 05:54 AM

You're welcome! You can still mark one... Mine was first cough ... J/k

avatar image HInoue Aug 02 '15 at 06:08 AM

Seems like compelling logic, thank you both of 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