# How to sweep by scaling a sphere?

**URL:** <https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002>\
**Category:** World Creation\
**Tags:** sweep, Trace, hit-result, unreal-engine, Collision, question\
**Created:** [September 29, 2016, 7:49pm UTC](https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002 "2016-09-29T19:49:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thumper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thumper](https://forums.unrealengine.com/u/Thumper)\
**Post date:** [September 29, 2016, 7:49pm UTC](https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002/1 "2016-09-29T19:49:58Z")

</div>

I’m curious how to use SweepSingleByChannel. I see that it has a start and end vector, and a collision shape. I’m guessing it takes the collision shape and moves it between the start and end vector. For my purposes all I really need to do is have the sphere shape scale from zero to a designated size, this would determine if anything is within the radius of the sphere and return that. But when I just use a start location for both start and end, and set the sphere to the size I want I don’t get a return on it.

---

<div class="post-metadata">

**Author:** ![pulp\_user](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pulp\_user](https://forums.unrealengine.com/u/pulp_user)\
**Post date:** [December 14, 2016, 3:39pm UTC](https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002/2 "2016-12-14T15:39:54Z")

</div>

Unfortunately i cannot answer your question, but I have a similar one. I am looking for the exact same thing as you, so that I can have usefull Vectors, when a actor using physics is overlapping with a sphere. The event doesn’t yield usefull data, as the moving actor does not use sweep but rather physics itsself. Do you know some way to get usefull data out of that overlap event? Or maybe have the moving actor use sweep, despite being moved by the physics simulation?

---

<div class="post-metadata">

**Author:** ![GizmoMKD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GizmoMKD](https://forums.unrealengine.com/u/GizmoMKD)\
**Post date:** [July 16, 2017, 12:49pm UTC](https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002/3 "2017-07-16T12:49:04Z")

</div>

try this video here, it’s Russian but you can copy some code: [- YouTube](https://www.youtube.com/watch?v=Qe2Zjt40d4U)

---

<div class="post-metadata">

**Author:** ![XxNotAGamerxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxNotAGamerxX](https://forums.unrealengine.com/u/XxNotAGamerxX)\
**Post date:** [January 6, 2023, 11:50pm UTC](https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002/4 "2023-01-06T23:50:55Z")

</div>

Can you post the code? The vid is private in 2023.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [January 7, 2023, 12:14am UTC](https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002/5 "2023-01-07T00:14:56Z")

</div>

Depending on your need, just do it with a sphere that you shrink at runtime, is not visible, and correctly interacts with the proper collision channels.

Its easier than running the dedicated trace channel, even if it needs a bit more coding to define what it is you hit and keep track of it.

Best part, if you make it into its own blueprint you can attach it to anything as a child actor and it will just work/do its thing.

---

<div class="post-metadata">

**Author:** ![XxNotAGamerxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxNotAGamerxX](https://forums.unrealengine.com/u/XxNotAGamerxX)\
**Post date:** [January 10, 2023, 8:44am UTC](https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002/6 "2023-01-10T08:44:30Z")

</div>

Thanks for the reply. I wanted the vid to see what he was talking about lol.

But you are saying just use a normal Sphere collision, and scale it up and down (e.g. on a Timeline, 2 secs) - and that works as the expanding collision detection? - as long as the Collision channels that are setup in the Sphere, are what we want to use?

And do we need to check “Sweep” in the Transform/scale node?

- (It is my understanding that we can change the scale of things with collision. But the engine wont constantly check collision hits during the scale transition (e.g. when it is 1.1 size, then 1.2 size and now it collides with something) - unless we check Sweep, correct?)  
Ty

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [January 10, 2023, 11:55am UTC](https://forums.unrealengine.com/t/how-to-sweep-by-scaling-a-sphere/372002/7 "2023-01-10T11:55:31Z")

</div>

Depends, it could work without sweep being checked if the object is movable for instance.
