# Calculate height and width

**URL:** <https://forums.unrealengine.com/t/calculate-height-and-width/533938>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [April 19, 2022, 9:31pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938 "2022-04-19T21:31:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlinnNew](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlinnNew](https://forums.unrealengine.com/u/FlinnNew)\
**Post date:** [April 19, 2022, 9:31pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/1 "2022-04-19T21:31:38Z")

</div>

Hi, is there a way to find height and width of an object at a same scale even if its rotated?

---

<div class="post-metadata">

**Author:** ![BlackCryptix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackCryptix](https://forums.unrealengine.com/u/BlackCryptix)\
**Post date:** [April 19, 2022, 9:51pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/2 "2022-04-19T21:51:11Z")

</div>

you can get the size of objects using these nodes depending on the object

 ![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/4/f24a44f439e403e8577df0db69b8375a146626c8.png)

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [April 19, 2022, 9:53pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/3 "2022-04-19T21:53:46Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/1/6e123f814490e997181075070d81452d8874209e.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/6/2465fee348d3922e6693de594d42aaa9cf0c75d4.jpeg)

---

<div class="post-metadata">

**Author:** ![FlinnNew](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlinnNew](https://forums.unrealengine.com/u/FlinnNew)\
**Post date:** [April 19, 2022, 9:58pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/4 "2022-04-19T21:58:37Z")

</div>

The key word to my question was “at a same scale even if its rotated?”  
Both of these methods can’t be used duo to rotation gives different values

RecourseDesign, The last value you got from the debug message, wich one is that. I only see 3 object in the scene

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [April 19, 2022, 10:08pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/5 "2022-04-19T22:08:04Z")

</div>

That last value is the landscape I’m guessing, I was interested in that too 🙂

If you’re wanting the static meshes width/height/depth ignoring the actors scale and rotation then it’s as easy as getting the mesh component and using the “Get Local Bounds” - as you can see, it is always -50 → 50 no matter the rotation - or am I still not getting your question?

---

<div class="post-metadata">

**Author:** ![FlinnNew](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlinnNew](https://forums.unrealengine.com/u/FlinnNew)\
**Post date:** [April 19, 2022, 10:14pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/6 "2022-04-19T22:14:23Z")

</div>

Ah yes, not exactly but close tho  
Is there a way to get the width/height/depth even with different rotation but not ignoring the Scale3D

---

<div class="post-metadata">

**Author:** ![BlackCryptix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackCryptix](https://forums.unrealengine.com/u/BlackCryptix)\
**Post date:** [April 19, 2022, 10:16pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/7 "2022-04-19T22:16:30Z")

</div>

Just multiply the scale with the box extend.

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [April 19, 2022, 10:16pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/8 "2022-04-19T22:16:56Z")

</div>

You can just multiply the local size by the actor scale like:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/c/82c5256a149ff966396e0c1ff55d7f77e87c11a5.png)

---

<div class="post-metadata">

**Author:** ![FlinnNew](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FlinnNew](https://forums.unrealengine.com/u/FlinnNew)\
**Post date:** [April 19, 2022, 10:17pm UTC](https://forums.unrealengine.com/t/calculate-height-and-width/533938/9 "2022-04-19T22:17:42Z")

</div>

Worked like butter, Thank you so mutch 🙂
