# MultiSphere Trace not returning Impact location

**URL:** <https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933>\
**Category:** World Creation\
**Tags:** Tracing, Trace, unreal-engine, Collision, question, Blueprint\
**Created:** [April 18, 2014, 12:52am UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933 "2014-04-18T00:52:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaure](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yaure](https://forums.unrealengine.com/u/yaure)\
**Post date:** [April 18, 2014, 12:52am UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/1 "2014-04-18T00:52:49Z")

</div>

Hi, I’m trying to get the impact point of a MultiSphere trace but it looks like that it is returning the sphere location instead.  
Please see the link below for more information. (I’ve posted it earlier in the blueprint section but couldn’t move it here).

> **[MultiSphere Trace FHitResult Location same as Impact Point?](https://forums.unrealengine.com/questions/30952/multisphere-trace-fhitresult-location-same-as-impa.html)**
>
> I’ve been trying to get the actual impact location from a MultiSphere Trace in blueprint but without success. In the first image you can see the Impact point (black dot) which I get from the Break Hit Result(aka FHitResult) and the sphere start/end...

Is this a bug or I’m doing it wrong?  
I tried with MultiLine trace and it works fine and returned me locations of actual impact (on the wall) instead.

---

<div class="post-metadata">

**Author:** ![Kris](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kris/32/758129_2.png) [@Kris](https://forums.unrealengine.com/u/Kris)\
**Post date:** [April 18, 2014, 3:30am UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/2 "2014-04-18T03:30:56Z")

</div>

Odd, I used one of these last night in a Blueprint. I wasn’t tracing for actors with skeletal mesh components and the correct debug points showed up.

While the C++ for this Blueprint function does use a depreceated function:

```
	return SphereTraceMultiByObject_DEPRECATED(WorldContextObject, Start, End, Radius, CollisionObjectTraces, bTraceComplex, ActorsToIgnore, DrawDebugType, OutHits, bIgnoreSelf);
}

```

The code it uses is similar to what I’ve done manually in C++ and the way it displays debug points is based on the hit result impact points:

```
		// draw hits
		for (int32 HitIdx=0; HitIdx<OutHits.Num(); ++HitIdx)
		{
			FHitResult const& Hit = OutHits[HitIdx];
			::DrawDebugPoint(World, Hit.ImpactPoint, KISMET_TRACE_DEBUG_IMPACTPOINT_SIZE, (Hit.bBlockingHit ? FColor::Red : FColor::Green), bPersistent, LifeTime);
		}

```

Does tracing for less types have any affect?  
e.g. WorldStatic and nothing else.

---

<div class="post-metadata">

**Author:** ![yaure](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yaure](https://forums.unrealengine.com/u/yaure)\
**Post date:** [April 18, 2014, 4:34am UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/3 "2014-04-18T04:34:33Z")

</div>

I’ve tried with just WorldStatic but still the same.  
I’ve just tried it with C++ but I’m still getting the wrong impact location. I’ve added the code below to replace the default jump function of the game character class from the 3rd person template.

```
TArray<FHitResult> hitResults;
    const FVector start = GetActorLocation();
    const FVector end = start + FVector(1.0f, 0.0f, 0.0f);
    FCollisionObjectQueryParams objectList;
    objectList.AddObjectTypesToQuery(ECC_WorldStatic);
    
    GetWorld()->SweepMulti(hitResults, start, end, FQuat(), FCollisionShape::MakeSphere(50.0f), FCollisionQueryParams(), objectList);
    		 
    for (int32 HitIdx = 0; HitIdx<hitResults.Num(); ++HitIdx) {
    	FHitResult const& Hit = hitResults[HitIdx];
    	::DrawDebugPoint(GetWorld(), Hit.ImpactPoint, 15.0f, (Hit.bBlockingHit ? FColor::Red : FColor::Green), true, 3.0f);
    }

```

---

<div class="post-metadata">

**Author:** ![yaure](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yaure](https://forums.unrealengine.com/u/yaure)\
**Post date:** [April 18, 2014, 4:43am UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/4 "2014-04-18T04:43:22Z")

</div>

SingleSphere, Capsule etc have the same problem too.  
The only thing that works are the Line traces.

---

<div class="post-metadata">

**Author:** ![\_Epic\_Ori\_Cohen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Epic\_Ori\_Cohen](https://forums.unrealengine.com/u/_Epic_Ori_Cohen)\
**Post date:** [April 18, 2014, 3:16pm UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/5 "2014-04-18T15:16:43Z")

</div>

Hi,

This is indeed a bug. The problem happens when the sphere at the start location is already overlapping with the hit object you’re testing against.

We’ll be looking into this, thanks for bringing it up!  
Sorry for the trouble

---

<div class="post-metadata">

**Author:** ![WillianG83\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WillianG83\_1](https://forums.unrealengine.com/u/WillianG83_1)\
**Post date:** [January 18, 2015, 9:12pm UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/6 "2015-01-18T21:12:46Z")

</div>

has this bug been listed to the next update?

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [January 19, 2015, 10:28pm UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/7 "2015-01-19T22:28:21Z")

</div>

Hi WillianG83,

Thank you for bringing this to our attention. This report was missed when we migrated to our new tracking software. I re-entered this as JIRA UE-7826 in our system and the developers will be investigating the issue further.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![zeroexception](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zeroexception](https://forums.unrealengine.com/u/zeroexception)\
**Post date:** [March 30, 2015, 6:52pm UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/8 "2015-03-30T18:52:07Z")

</div>

I looked in to this and it actually doesn’t appear to be an engine bug, but it’s something we can message more clearly so I’ve taken some steps to do that.

In cases like this where you make a query and are initially overlapping something, we can’t really determine a good ImpactPoint or ImpactLocation, because you started in the object with more than one point of contact (a whole surface of contact). In this case we set Location and ImpactPoint to the start location.

I added a new bool to BreakHitResult to report “Initial Overlap”, and improved the comments on the other relevant fields to hopefully make this more clear in the future.

---

<div class="post-metadata">

**Author:** ![TheAgent](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheAgent](https://forums.unrealengine.com/u/TheAgent)\
**Post date:** [April 6, 2015, 7:41pm UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/9 "2015-04-06T19:41:29Z")

</div>

Has this issue been solved yet?

---

<div class="post-metadata">

**Author:** ![zeroexception](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zeroexception](https://forums.unrealengine.com/u/zeroexception)\
**Post date:** [April 6, 2015, 7:52pm UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/10 "2015-04-06T19:52:04Z")

</div>

See my answer to the post. This is not a bug; in the case of initial overlaps there is no defined ImpactPoint or Location. 4.8 will make this more clear in the exposed values in BreakHitResult and in documentation.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1f07ce14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1f07ce14](https://forums.unrealengine.com/u/anonymous_user_1f07ce14)\
**Post date:** [November 24, 2017, 1:36am UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/11 "2017-11-24T01:36:00Z")

</div>

What is a good work around then? For instance I’ve got a grenade and am doing a multisphere line trace from the actor’s origin for any damagable actors, simulating shrapnel damage. Once I got the impact point, I’m tracing back to ensure the hit location isn’t blocked by some non-penetrable actor.

However, in this case the trace starts at the grenade’s origin, and thus initially overlaps damagable actors. I’ll provide pictures if my setup isn’t clear.

---

<div class="post-metadata">

**Author:** ![Zetaku3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zetaku3](https://forums.unrealengine.com/u/Zetaku3)\
**Post date:** [March 31, 2023, 1:45pm UTC](https://forums.unrealengine.com/t/multisphere-trace-not-returning-impact-location/280933/12 "2023-03-31T13:45:59Z")

</div>

A good workaround, at least for me was to not set the start and end of the trace at the exact same location
