# How can I spawn actors on a rotated collision box?

**URL:** <https://forums.unrealengine.com/t/how-can-i-spawn-actors-on-a-rotated-collision-box/438730>\
**Category:** Blueprint\
**Tags:** random, endless-runner, bounding-box, unreal-engine, spawning-actors, Blueprint, question\
**Created:** [December 2, 2018, 10:33pm UTC](https://forums.unrealengine.com/t/how-can-i-spawn-actors-on-a-rotated-collision-box/438730 "2018-12-02T22:33:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReishiRamzi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReishiRamzi](https://forums.unrealengine.com/u/ReishiRamzi)\
**Post date:** [December 2, 2018, 10:33pm UTC](https://forums.unrealengine.com/t/how-can-i-spawn-actors-on-a-rotated-collision-box/438730/1 "2018-12-02T22:33:54Z")

</div>

The actors spawn as expected on a flat collision box, but when I try to spawn actors on a rotated box, they don’t spawn within the box constraints on the z axis. The child actors merely spawn at the origin z.

 ![261128-floortilebp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/c/74c87b33d2086c8e25a9f83c743e703da29414e2.png)

Thank you in advance for any advice.

---

<div class="post-metadata">

**Author:** ![HarryHighDef](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarryHighDef](https://forums.unrealengine.com/u/HarryHighDef)\
**Post date:** [December 3, 2018, 9:28am UTC](https://forums.unrealengine.com/t/how-can-i-spawn-actors-on-a-rotated-collision-box/438730/2 "2018-12-03T09:28:32Z")

</div>

You need to rotate your rector by the boxes world rotation after you get the random in the bounding box.

---

<div class="post-metadata">

**Author:** ![ReishiRamzi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReishiRamzi](https://forums.unrealengine.com/u/ReishiRamzi)\
**Post date:** [January 4, 2019, 7:56pm UTC](https://forums.unrealengine.com/t/how-can-i-spawn-actors-on-a-rotated-collision-box/438730/3 "2019-01-04T19:56:56Z")

</div>

This makes sense, thank you for your reply!
