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?
asked Aug 02 '15 at 05:31 AM in C++ Programming
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.
Follow this question
Once you sign in you will be able to subscribe for any updates here