# Sweep doesn't work on AddRelativeRotation?

**URL:** <https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357>\
**Category:** Community & Industry Discussion\
**Tags:** sweep, unreal-engine, door, question\
**Created:** [September 10, 2014, 2:17pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357 "2014-09-10T14:17:52Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6fac8fd61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6fac8fd61](https://forums.unrealengine.com/u/anonymous_user_6fac8fd61)\
**Post date:** [September 10, 2014, 2:17pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/1 "2014-09-10T14:17:52Z")

</div>

I’m getting very inconsistent behavior with “Sweep” movements.

With a sliding door, if I move it repeatedly with AddRelativeLocation with Sweep=True, door stops when it hits an obstacle. This is great.

With a rotating door, if I move it repeatedly with AddRelativeRotation with Sweep=True, door passes through all obstacles. This is not great.

StaticMeshComponent that I’m moving has good collision volumes, has collisions turned on, and in all other ways seems capable of blocking or being-blocked. I can make it collide with static or dynamic objects (or both) by tweaking its collision settings, and that all seems to work fine for most things. But when motion is rotation, Sweep seems to do nothing.

Is this a known issue? Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6fac8fd61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6fac8fd61](https://forums.unrealengine.com/u/anonymous_user_6fac8fd61)\
**Post date:** [September 10, 2014, 7:55pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/2 "2014-09-10T19:55:00Z")

</div>

For record, this bug is easy to reproduce:

1. Create a new “First Person Blueprint” project in UE4.4.1, and use Example\_Map level.
2. Delete several physics-objects blocks in Example\_Map, to avoid confusion.
3. Create a new Blueprint, derived from Actor, called “MovingBlock”
4. In that Blueprint, add a StaticMeshComponent called Block. Set Block’s StaticMesh to Shape\_Cube asset, set its Collision Presets to “BlockAll”.
5. In that Blueprint’s EventGraph, add an EventTick which calls AddRelativeLocation (Target=Block, [X=10, Y=0, Z=0], Sweep=True). This will make it slide in +X direction continuously.
6. Drop an instance of that blueprint into middle of ExampleMap arena.
7. Hit Simulate, and watch how block slides and then stops when it hits a wall. This is “good” behavior.
8. Now modify EventGraph so that EventTick instead calls AddRelativeRotation(Target=Block, ([R=0, P=0, Y=1], Sweep=True). This will make it Yaw (rotate around Z axis) continuously.
9. Move Blueprint instance so it’s next to (but not touching) one of Example\_Map walls.
10. Hit Simulate, and watch how block rotates through wall. This is “bad” behavior.

Why does Sweep cause AddRelativeLocation to stop on collision, but not AddRelativeRotation?

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6fac8fd61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6fac8fd61](https://forums.unrealengine.com/u/anonymous_user_6fac8fd61)\
**Post date:** [September 10, 2014, 8:25pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/3 "2014-09-10T20:25:53Z")

</div>

I have reproduced this bug in 4.3.1 as well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [September 12, 2014, 5:09pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/4 "2014-09-12T17:09:40Z")

</div>

Hey tlokovic,

Thanks for thorough investigation! I was able to reproduce issue you described, and have entered a report in our database for our developers (TTP# 346402). I will let you know when I see an update on this. Thanks!

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [May 24, 2015, 4:31am UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/5 "2015-05-24T04:31:58Z")

</div>

Looks very much like issue i have on my project…

> **[Blocker : Overlap Event on fast rotating actor](https://forums.unrealengine.com/questions/174424/blocker-overlap-event-on-fast-rotating-actor.html)**
>
> Hello folks Here is my current blocker. There might be a simple solution for that, but I found none and I really hope there is one, otherwise i’m a bit screwed XD Moving actor on an axis are using the very useful SWEEP option to check if they met...

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [May 24, 2015, 4:36am UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/6 "2015-05-24T04:36:28Z")

</div>

Oh and ‘Set actor Location’ has a Sweep option, whereas ‘Set Actor Rotation’ doesn’t. Kind of suggesting Sweep on rotation is not supported?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [May 26, 2015, 7:47pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/7 "2015-05-26T19:47:35Z")

</div>

Hi Genova,

Unfortunately you are correct: rotational sweeping isn’t supported. bug report (UE-3158) was closed because developers aren’t able to fix this with current collision/physics system. I’m going to see if they can at least remove Sweep option from node as it clearly doesn’t belong there.

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [May 28, 2015, 4:06am UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/8 "2015-05-28T04:06:14Z")

</div>

Hey ,

What a shame, for a moment I thought you guys would fix/support this, and that would have solved all coll issues I’ve been struggling with for several weeks 😉

Out of curiosity, would you be so kind as to ask for an explanation on why it wouldn’t be supported ?  
Thanks

---

<div class="post-metadata">

**Author:** ![Dig\_Squid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dig_squid/32/1145423_2.png) [@Dig\_Squid](https://forums.unrealengine.com/u/Dig_Squid)\
**Post date:** [May 28, 2015, 8:07pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/9 "2015-05-28T20:07:00Z")

</div>

Sweeping shapes is a pretty well understood problem and there are good analytic solutions to it, but (as far as I know!) that just isn’t case for rotation. only approaches I know of involve something like binary searching, or using some more complex geometries like Plucker co-ordinates, but even then it is very complex and thus slow. If you find an approach that seems practice do let us know though!

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [May 29, 2015, 2:43am UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/10 "2015-05-29T02:43:40Z")

</div>

Very unlikely, I only have a Designer background 🙂  
Thanks for info though.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e690b31d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e690b31d](https://forums.unrealengine.com/u/anonymous_user_e690b31d)\
**Post date:** [March 19, 2016, 3:52pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/11 "2016-03-19T15:52:06Z")

</div>

A found this page because I also expected sweep pin to be functional in AddActor(World/Local)Rotation. Could that be fixed?

Maybe with a hover-on comment that says sweeping is not supported?

---

<div class="post-metadata">

**Author:** ![Mattlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Post date:** [October 13, 2019, 4:42am UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/12 "2019-10-13T04:42:10Z")

</div>

I just want to point out that in October of 2019, Sweep option that is not supported is still on node.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bd776a99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bd776a99](https://forums.unrealengine.com/u/anonymous_user_bd776a99)\
**Post date:** [May 5, 2020, 12:18am UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/13 "2020-05-05T00:18:03Z")

</div>

only approaches I know of involve something like binary searching [PayGoOnline](https://www.paygonline.vip/), or using some more complex geometries like Plucker co-ordinates, but even then it is very complex and thus slow.

---

<div class="post-metadata">

**Author:** ![i\_susanin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i\_susanin](https://forums.unrealengine.com/u/i_susanin)\
**Post date:** [October 6, 2020, 9:11pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/14 "2020-10-06T21:11:05Z")

</div>

October 2020, sweep option is still on node and doesn’t work ☹  
Does anybody find a good solution for this problem?

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [October 12, 2020, 6:38pm UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/15 "2020-10-12T18:38:37Z")

</div>

IDK - you could try jiggling it a tiny bit each time it rotates, using a SetActorLocation node, with sweep added, to force it to collide. Not sure if that works though.

---

<div class="post-metadata">

**Author:** ![entropyandvodka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@entropyandvodka](https://forums.unrealengine.com/u/entropyandvodka)\
**Post date:** [March 2, 2021, 12:55am UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/16 "2021-03-02T00:55:59Z")

</div>

I’m currently working on a custom movement system that runs up against this issue. There are ways around it, but cost starts to become a concern. I’m curious how this type of thing is handled on objects simulating physics, which are bound to collide from rotations. Do they just enter from a rotation then depenetrate up to a max iteration?

---

<div class="post-metadata">

**Author:** ![kyubuns](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kyubuns](https://forums.unrealengine.com/u/kyubuns)\
**Post date:** [December 1, 2023, 5:27am UTC](https://forums.unrealengine.com/t/sweep-doesnt-work-on-addrelativerotation/293357/17 "2023-12-01T05:27:18Z")

</div>

Is this problem still intact in UE5.3 as of 2023?  
I was trying to see if it would work since that node has Pin, but it doesn’t seem to work.
