# Animate an Object by its Bounding Box

**URL:** <https://discourse.threejs.org/t/animate-an-object-by-its-bounding-box/20057>\
**Category:** Questions\
**Tags:** animation\
**Created:** [October 23, 2020, 4:09am UTC](https://discourse.threejs.org/t/animate-an-object-by-its-bounding-box/20057 "2020-10-23T04:09:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashaswiks](https://avatars.discourse-cdn.com/v4/letter/y/91b2a8/32.png) [@yashaswiks](https://discourse.threejs.org/u/yashaswiks)\
**Post date:** [October 23, 2020, 4:09am UTC](https://discourse.threejs.org/t/animate-an-object-by-its-bounding-box/20057/1 "2020-10-23T04:09:23Z")

</div>

Hey all,  
I want to animate an object by its `THREE.Box3` Bounding Box. In the sense that If i animate the bounding box of an `Object3D`, the `Object 3D` enclosed by the Bounding Box should also be animated respectively. Is it even possible to do something like this? Couldn’t find anything in the documentation. Thanks in Advance!

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [October 23, 2020, 8:36am UTC](https://discourse.threejs.org/t/animate-an-object-by-its-bounding-box/20057/2 "2020-10-23T08:36:38Z")

</div>

> [@yashaswiks](#):
>
> In the sense that If i animate the bounding box of an `Object3D` , the `Object 3D` enclosed by the Bounding Box should also be animated respectively.

Sorry but it’s not clear to me what you are looking for. Keep in mind that an AABB just represents the bounds of a geometry/mesh. Changing the AABB has no effect to the object it is referring to.

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [October 23, 2020, 8:43am UTC](https://discourse.threejs.org/t/animate-an-object-by-its-bounding-box/20057/3 "2020-10-23T08:43:52Z")

</div>

@yashaswiks  
Seems you’re looking for something like this:

> [@Does Three have any kind of independent unit? I understand that a unit in Three is abstract, but scale.set seems to be relative to the models imported size](https://discourse.threejs.org/t/does-three-have-any-kind-of-independent-unit-i-understand-that-a-unit-in-three-is-abstract-but-scale-set-seems-to-be-relative-to-the-models-imported-size/16019):
>
> So basically, if I had two chairs created in Blender, which has real-world scales set. Here’s an example “Small Chair” is 1.5 metres tall. “Big Chair” is 25 metres tall. Three will see "Small Chair"s scale as 1. Three will also see "Big Chair"s scale as 1. Is there a unit that see’s the difference (world scale?) Here’s what I’m trying to achieve. Say I have a cube in my initial scene. This cube is in theory 1 metre tall and its scale is 1,1,1. If I import either of my chairs, what property…

---

<div class="post-metadata">

**Author:** ![yashaswiks](https://avatars.discourse-cdn.com/v4/letter/y/91b2a8/32.png) [@yashaswiks](https://discourse.threejs.org/u/yashaswiks)\
**Post date:** [October 23, 2020, 9:29am UTC](https://discourse.threejs.org/t/animate-an-object-by-its-bounding-box/20057/4 "2020-10-23T09:29:53Z")

</div>

@Mugen87 Thanks for the response. To be precise after assigning Bounding Box to an `Object3D` . I want to animate the Object 3D from `P1(x1, y1, z1)` to `P2(x2,y2,z2)` , but not by the `Object3D.position` but rather by the `center` of its respective bounding box. Hope I am clear. 😅
