# \[4.22\] "SphereTraceForObjects" node is not working anymore

**URL:** <https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485>\
**Category:** World Creation\
**Tags:** Trace, object, unreal-engine, question\
**Created:** [April 2, 2019, 10:09pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485 "2019-04-02T22:09:59Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hassunami](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hassunami](https://forums.unrealengine.com/u/Hassunami)\
**Post date:** [April 2, 2019, 10:09pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/1 "2019-04-02T22:09:59Z")

</div>

Hello,

I migrated my project from 4.21 to 4.22 and noticed that my lock on event which uses sphere trace for object is not working. It does not generate any hits.

I also tried creating a new project from scratch and the same thing happens.

Thank you.

---

<div class="post-metadata">

**Author:** ![v01dmaester](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@v01dmaester](https://forums.unrealengine.com/u/v01dmaester)\
**Post date:** [April 3, 2019, 11:04am UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/2 "2019-04-03T11:04:07Z")

</div>

I have the same issue as well with multispheretraceforobjects

---

<div class="post-metadata">

**Author:** ![Hichigo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hichigo](https://forums.unrealengine.com/u/Hichigo)\
**Post date:** [April 3, 2019, 12:58pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/3 "2019-04-03T12:58:59Z")

</div>

I have the same problem in 4.22, I checked

- “SphereTraceByChannel”
- “SphereTraceForObjects”
- “BoxTraceByChannel”
- “BoxTraceForObjects”

they do not work

— edit —

The amendment does not work if the start/end trace same.

in 4.21 it works with the start / end same

start = getActorLocation()

end = getActorLocation()

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [April 3, 2019, 1:56pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/4 "2019-04-03T13:56:05Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://epicsupport.force.com/unrealengine/s/](https://epicsupport.force.com/unrealengine/s/)

Thanks

---

<div class="post-metadata">

**Author:** ![Hassunami](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hassunami](https://forums.unrealengine.com/u/Hassunami)\
**Post date:** [April 3, 2019, 2:38pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/5 "2019-04-03T14:38:05Z")

</div>

I have checked with a different start and end vectors and and confirm that it works.

I have reported the issue and linked to this thread using the new submission form.

Hopefully this will get fixed soon.

---

<div class="post-metadata">

**Author:** ![Yakim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yakim](https://forums.unrealengine.com/u/Yakim)\
**Post date:** [April 3, 2019, 3:09pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/6 "2019-04-03T15:09:58Z")

</div>

Hey, guys, I looked at the source code of the trace function, it looks like it should be.  
MyWorld-\>SweepSingleByChannel() → FPhysicsInterface::GeomSweepSingle() - \> TSceneCastCommon()

[https://github.com/EpicGames/UnrealEngine/blob/7d9919ac7bfd80b7483012eab342cb427d60e8c9/Engine/Source/Runtime/Engine/Private/Collision/SceneQuery.cpp#L340](https://github.com/EpicGames/UnrealEngine/blob/7d9919ac7bfd80b7483012eab342cb427d60e8c9/Engine/Source/Runtime/Engine/Private/Collision/SceneQuery.cpp#L340)

Here is the delta between the beginning and the end, and then there is a check that the difference is not too small.  
If the difference is less than a very small number, then the trace will not work.

```
    bool bHaveBlockingHit = false;

    FVector Delta = End - Start;
	float DeltaMag = Delta.Size();
	float MinBlockingDistance = DeltaMag;
	if (DeltaMag > KINDA_SMALL_NUMBER)
	{
        trace true
    }
    bHaveBlockingHit = bBlockingHit;
    return bHaveBlockingHit;
```

---

<div class="post-metadata">

**Author:** ![Yakim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yakim](https://forums.unrealengine.com/u/Yakim)\
**Post date:** [April 3, 2019, 3:19pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/7 "2019-04-03T15:19:41Z")

</div>

You can use collision components (USphereCollision and etc) or these functions below.

 ![273176-cdbfa13c-cd61-4743-9fca-d237b8e82e99.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/e/4be965cd60748b276c87c3642c0c20af020a946d.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_942e8e52](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_942e8e52](https://forums.unrealengine.com/u/anonymous_user_942e8e52)\
**Post date:** [April 3, 2019, 6:55pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/8 "2019-04-03T18:55:56Z")

</div>

Hello all,

This is a known issue,

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-68641)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

as a workaround, make the start or end position a tiny bit different.

---

<div class="post-metadata">

**Author:** ![HeliaXDemoN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HeliaXDemoN](https://forums.unrealengine.com/u/HeliaXDemoN)\
**Post date:** [April 10, 2019, 3:49pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/9 "2019-04-10T15:49:41Z")

</div>

This is a huge problem, please up vote the issue.

---

<div class="post-metadata">

**Author:** ![blink7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blink7](https://forums.unrealengine.com/u/blink7)\
**Post date:** [May 7, 2019, 9:28pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/10 "2019-05-07T21:28:10Z")

</div>

These functions only provide overlapped actors/components, not Hit result, so this is useless in most cases…

---

<div class="post-metadata">

**Author:** ![Skalin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skalin](https://forums.unrealengine.com/u/Skalin)\
**Post date:** [May 27, 2019, 6:46am UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/11 "2019-05-27T06:46:53Z")

</div>

I have the same issue with Line tracing, as well as.  
I have a custom collision channel set up, and when doing a LineTrace by Channel, or a UnderCursor by Cannel it doesnt detect any collision…  
Made my whole project unusable…

---

<div class="post-metadata">

**Author:** ![Vexar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vexar/32/1209009_2.png) [@Vexar](https://forums.unrealengine.com/u/Vexar)\
**Post date:** [June 16, 2019, 5:14pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/12 "2019-06-16T17:14:31Z")

</div>

My entire project’s AI is broken because of this issue, I am using the sphere trace as a proximity filter before doing anymore work with the AI to target so when this is broken it never moves forward. This is the method they show in the AI tutorials surprised this wasn’t fixed in a point release.

---

<div class="post-metadata">

**Author:** ![Travinator98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Travinator98](https://forums.unrealengine.com/u/Travinator98)\
**Post date:** [June 25, 2019, 1:44am UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/13 "2019-06-25T01:44:34Z")

</div>

As far as i know this still hasn’t been addressed. As is stated above, this isn’t a minor thing and affects _all_ shape based traces as far as I can tell. This is a massive issue.  
At the VERY LEAST we should have been informed that this was going to be required for traces from now on if it was a design decision. This took me literally weeks to find the issue after I updated my project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_942e8e52](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_942e8e52](https://forums.unrealengine.com/u/anonymous_user_942e8e52)\
**Post date:** [June 25, 2019, 2:02pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/14 "2019-06-25T14:02:44Z")

</div>

This was assigned to a new engineer last week and is internally classified as ‘in progress’ (so that’s something!)

In the meantime, making the end different from the start even just by one unit will workaround this!

---

<div class="post-metadata">

**Author:** ![Travinator98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Travinator98](https://forums.unrealengine.com/u/Travinator98)\
**Post date:** [July 3, 2019, 4:24am UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/15 "2019-07-03T04:24:41Z")

</div>

Ok, thank you for the response. I was a bit worried I would have to revert to an older engine version because of this bug

---

<div class="post-metadata">

**Author:** ![g0n](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/g0n/32/632978_2.png) [@g0n](https://forums.unrealengine.com/u/g0n)\
**Post date:** [July 19, 2019, 3:53pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/16 "2019-07-19T15:53:08Z")

</div>

I have to say that nowdays this still happens and Im upgrading Unreal Engine of my project from 4.19.2 to 4.22.2. It broke many of the mechanics I did to my game which used Multisphere Trace Objects, Line and capsule. All of them stop working. The fix I did was adding 0.01 to the End vector entry

 ![282832-422fix.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/e/16e3eaad178bd50fde06733a541f887d0c6566ec.jpeg)

---

<div class="post-metadata">

**Author:** ![LVilchez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LVilchez](https://forums.unrealengine.com/u/LVilchez)\
**Post date:** [July 29, 2019, 10:00pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/17 "2019-07-29T22:00:30Z")

</div>

The same is happening to me using SweepSingleByChannel in c++ using a sphere with FCollisionShape::MakeSphere.

I used the same vector for start and end. It worked in 4.21 but not in 4.22. I fixed it by adding a small offset to the start vector.

---

<div class="post-metadata">

**Author:** ![Gaint\_Rat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gaint\_Rat](https://forums.unrealengine.com/u/Gaint_Rat)\
**Post date:** [August 12, 2019, 9:36pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/18 "2019-08-12T21:36:06Z")

</div>

As far as i am aware its still present as it just rendered all my line/box/sphere and capsule trace by custom channel broken in the 22.3 build, i am unable to register any hit with them.

No Adding an offset at the start or end makes no difference.

---

<div class="post-metadata">

**Author:** ![Brylonian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brylonian](https://forums.unrealengine.com/u/Brylonian)\
**Post date:** [October 12, 2019, 11:15pm UTC](https://forums.unrealengine.com/t/4-22-spheretraceforobjects-node-is-not-working-anymore/446485/19 "2019-10-12T23:15:03Z")

</div>

Thanks for working on this. We upgraded to 4.23 today and several major features in our game broke due to this bug. For now I will implement the work-around, but I will have this frowny face until I can remove them ☹
