# Object Movement Through Doors Without Collisions

**URL:** <https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345>\
**Category:** Revit\
**Tags:** revit, designscript, dynamo\
**Created:** [May 23, 2025, 12:58pm UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345 "2025-05-23T12:58:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![A.C3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/a.c3d/32/196902_2.png) [@A.C3D](https://forum.dynamobim.com/u/A.C3D)\
**Post date:** [May 23, 2025, 12:58pm UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/1 "2025-05-23T12:58:02Z")

</div>

Hi,  
I’m looking to develop a script that checks whether an object can move from one room to another through a door without touching any walls.  
What strategy could I use to determine if the object fits and can pass through the door without collision?  
Do you have any suggestions or ideas on how to approach this?  
Thanks in advance!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/d/ed237f3d1fc781c5f9df7ad599fa9136db94c12c.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 23, 2025, 2:14pm UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/2 "2025-05-23T14:14:12Z")

</div>

I think your best bet will be to build a voxel model from the obstructions, then extract the planar diagonal of the minimum bounding volume for the object, get your start and end point, and use the voxel model, start point, end point, and diagonal measurement to build a path in VASA.

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [May 24, 2025, 6:04am UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/4 "2025-05-24T06:04:24Z")

</div>

A very simple way to do this in the worst case is rotate the object 360 degrees and bounding box it each time to find the maximum cross dimension it would take to rotate your object in the corridor, then make sure the doors are the shorter side in width. You would know on that basis that you can manouvre the object 180 and through in that case.

It would not be the optimized width as you could turn the object through the door as well but in reality is a better designed outcome. This is coming from someone who bought a house last year and had a lot of fun manouvering furniture through corridors of challenging layouts, scuffing many a door frame.

---

<div class="post-metadata">

**Author:** ![A.C3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/a.c3d/32/196902_2.png) [@A.C3D](https://forum.dynamobim.com/u/A.C3D)\
**Post date:** [May 24, 2025, 6:55am UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/5 "2025-05-24T06:55:49Z")

</div>

I’m in a very similar situation — I have an object and I want to verify whether it can pass through a doorway. The challenge is that I can’t cover every possible scenario, because sometimes you can rotate or tilt the object in 2 or 3 steps to get it through. So it’s not always a straightforward calculation.

---

<div class="post-metadata">

**Author:** ![BimAmbit](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bimambit/32/192629_2.png) [@BimAmbit](https://forum.dynamobim.com/u/BimAmbit)\
**Post date:** [May 25, 2025, 6:04am UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/6 "2025-05-25T06:04:29Z")

</div>

generative design could be helpful. i mean especially when the solution space isn’t clear.

---

<div class="post-metadata">

**Author:** ![A.C3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/a.c3d/32/196902_2.png) [@A.C3D](https://forum.dynamobim.com/u/A.C3D)\
**Post date:** [May 25, 2025, 8:13am UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/7 "2025-05-25T08:13:10Z")

</div>

I’m heading in that direction too 😉

---

<div class="post-metadata">

**Author:** ![A.C3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/a.c3d/32/196902_2.png) [@A.C3D](https://forum.dynamobim.com/u/A.C3D)\
**Post date:** [May 27, 2025, 8:34am UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/8 "2025-05-27T08:34:57Z")

</div>

I successfully created the voxel model, but the generated path is curved from point to point. I can ensure that the minimum length of the object allows it to pass through the door, but I want to guarantee that when it turns, it doesn’t touch the wall.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/107bcd978516de2999383b4d85f1702e9af1d1b7.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 27, 2025, 6:12pm UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/9 "2025-05-27T18:12:52Z")

</div>

> [@A.C3D](#):
>
> but the generated path is curved from point to point

First up, draw a big sphere that encompasses your object, not a rectangle. The diameter of the object can be attained by taking the diagonal from point A to point B.

Now create the path using the diameter of the sphere for the agent horizontal offset when you build the path model.

If you extract the points of the path from start to end and transform the sphere so it’s centered on each point it should never touch one of the walls.

---

<div class="post-metadata">

**Author:** ![A.C3D](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/a.c3d/32/196902_2.png) [@A.C3D](https://forum.dynamobim.com/u/A.C3D)\
**Post date:** [May 28, 2025, 7:39am UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/10 "2025-05-28T07:39:14Z")

</div>

Is the agent’s horizontal distance measured in voxel units?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 28, 2025, 10:21am UTC](https://forum.dynamobim.com/t/object-movement-through-doors-without-collisions/110345/11 "2025-05-28T10:21:26Z")

</div>

Yes - which means you need to account for the coarse voxel size and level of detail when you figure out the inputs.
