# Box Extent not correct 5.1.1

**URL:** <https://forums.unrealengine.com/t/box-extent-not-correct-5-1-1/1173980>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [May 21, 2023, 9:46pm UTC](https://forums.unrealengine.com/t/box-extent-not-correct-5-1-1/1173980 "2023-05-21T21:46:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![GRIMTEC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grimtec/32/251054_2.png) [@GRIMTEC](https://forums.unrealengine.com/u/GRIMTEC)\
**Post date:** [May 23, 2023, 1:42pm UTC](https://forums.unrealengine.com/t/box-extent-not-correct-5-1-1/1173980/5 "2023-05-23T13:42:47Z")

</div>

> [@Oriented bounding box from GetLocalBounds](https://forums.unrealengine.com/t/oriented-bounding-box-from-getlocalbounds/241396):
>
> Hello, Rendering an (axis aligned) boundingbox using getcomponentbounds works nicely (below in green). To visualize my target-rectangle (red lines) I’m trying to get it a bit more tight by making an oriented boundingbox, using GetLocalBounds and rotating it (below in yellow). However as is seen in the image, the yellow box doesn’t encompass the mesh, it is missing some offset. Any idea where to get that offset?

> **[How to calculate an Actor Oriented Bounding Box (OBB) With Unreal Engine](https://fulezi.wordpress.com/2023/05/18/how-to-calculate-an-actor-oriented-bounding-box-obb-with-unreal-engine/)**
>
> To obtain an Oriented Bounding Box (OBB) for an object, we first need to retrieve the local Axis Aligned Bounding Box (AABB) and then construct our OBB using a center and an extent vector transform…

---

_[View the full topic](https://forums.unrealengine.com/t/box-extent-not-correct-5-1-1/1173980)._
