# BUG: SphereTraceByChannel radius cannot be larger than Character Capsule's radius

**URL:** <https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481>\
**Category:** Character & Animation\
**Tags:** Trace, unreal-engine, bug-report, question\
**Created:** [December 5, 2017, 8:05pm UTC](https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481 "2017-12-05T20:05:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJ\_Graphix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_graphix/32/1194669_2.png) [@AJ\_Graphix](https://forums.unrealengine.com/u/AJ_Graphix)\
**Post date:** [December 5, 2017, 8:05pm UTC](https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481/1 "2017-12-05T20:05:06Z")

</div>

EDIT: I’ve come across a bug with the SphereTraceByChannel (and capsule and box) nodes, where a radius **larger than your character’s capsule’s radius** will cause the trace to reset its impact location to be the origin of the sphere, not the point of contact.

You can observe this by firing the Wall/Ledge Detect custom event on Tick from inside your Character BP (as shown below). When the radius is larger than your character’s capsule’s radius, as the character approaches an object that responds to the WallTrace custom channel, the debug contact point will be shown, however, when the character finally touches the object the contact point will shift to the sphere’s origin. This is not just cosmetic, either, you can actually see the abrupt shift in X or Y in the Print String of the Impact Point vector. This bug prevents a large spherical trace from being possible.

Thanks very much for looking into this!

-Adam

 ![222677-spheretracebychannelbug.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/9/7997687f593baa7c3f42ad364b75bf6f77b176af.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_943e62f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_943e62f0](https://forums.unrealengine.com/u/anonymous_user_943e62f0)\
**Post date:** [December 5, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481/2 "2017-12-05T20:56:26Z")

</div>

Hey,

Are you using the default template Character BPs? Like First/Third Person BP or are you using a custom one? I’m not finding this any of this in the default character bps. So if you could provide me with clarification of where you found the Wall Trace Inputs or the Custom Event that would be great. If you are using something custom or modified then I would need you to send that to me so I can investigate.

Thanks

---

<div class="post-metadata">

**Author:** ![AJ\_Graphix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_graphix/32/1194669_2.png) [@AJ\_Graphix](https://forums.unrealengine.com/u/AJ_Graphix)\
**Post date:** [December 5, 2017, 9:26pm UTC](https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481/3 "2017-12-05T21:26:25Z")

</div>

Hi ,

Thanks for your reply. I’ve recreated it in the Third Person template. When you play the game, walk toward the rounded cube as shown in the image below. Keep an eye on the X value. Watch it shift abruptly once your character touches the cube, and the debug square also disappears (my character is much smaller than this mannequin, so I can see that the debug square is actually snapping to the origin of the sphere trace). This issue also happens with capsule and box traces as well.

I have linked to a simplified project: [[https://drive.google.com/open?id=1AjyA2o8uK0D2PcU3XdW0AwFTTqdPOsem](https://drive.google.com/open?id=1AjyA2o8uK0D2PcU3XdW0AwFTTqdPOsem)][1]

I hope this helps! Thank you for your time in looking into this.  
-Adam

 ![222680-hitworking.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/9/a493f594aba06ce2333b06206541565a903bd352.jpeg)

 ![222691-hitnotworking.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/3/633d53ed5192a0d138a03033ba508dc2c1ffa549.jpeg)

---

<div class="post-metadata">

**Author:** ![AJ\_Graphix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_graphix/32/1194669_2.png) [@AJ\_Graphix](https://forums.unrealengine.com/u/AJ_Graphix)\
**Post date:** [December 5, 2017, 9:28pm UTC](https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481/4 "2017-12-05T21:28:54Z")

</div>

EDIT: Hit F1 to turn on wireframe view, and you can see the debug square snap to the origin.

---

<div class="post-metadata">

**Author:** ![AJ\_Graphix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_graphix/32/1194669_2.png) [@AJ\_Graphix](https://forums.unrealengine.com/u/AJ_Graphix)\
**Post date:** [December 5, 2017, 9:33pm UTC](https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481/5 "2017-12-05T21:33:49Z")

</div>

MAJOR EDIT 2: I just discovered there’s nothing special about the number 27 here. Actually, that’s my character’s capsule’s radius. For the default mannequin, with a radius of 42, a radius of 43 or more on the sphere trace will break the system.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_943e62f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_943e62f0](https://forums.unrealengine.com/u/anonymous_user_943e62f0)\
**Post date:** [December 6, 2017, 7:01pm UTC](https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481/6 "2017-12-06T19:01:32Z")

</div>

Hey,

I was able to replicate the issue. I have logged a JIRA ticket with the developers for them to address this. You can access [UE-53119](https://issues.unrealengine.com/issue/UE-53119) at anytime to check the status of the bug.

---

<div class="post-metadata">

**Author:** ![AJ\_Graphix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_graphix/32/1194669_2.png) [@AJ\_Graphix](https://forums.unrealengine.com/u/AJ_Graphix)\
**Post date:** [December 6, 2017, 7:25pm UTC](https://forums.unrealengine.com/t/bug-spheretracebychannel-radius-cannot-be-larger-than-character-capsules-radius/411481/7 "2017-12-06T19:25:16Z")

</div>

That’s great to hear! Thank you, , for investigating the issue and reporting it.

Have a good day.  
-Adam
