# Sphere casts returning wrong hit  against mesh colliders on android 

**URL:** <https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271>\
**Category:** Mobile\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [April 2, 2025, 6:36pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271 "2025-04-02T18:36:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 2, 2025, 6:36pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/1 "2025-04-02T18:36:45Z")

</div>

Hello,

We are experiencing a bug, where sphere casting returns jittery and not accurate results on Android devices (tested on Samsung Galaxy S23, Google Pixel 7a). We can reproduce the problem in 3rd person template project with latest 5.5.4 engine.

I was testing the issue by comparing results from Sphere cast with radius 0 (which is translated to raycast) and sphere cast with radius 10. In editor & win build results from those two are mostly aligned, but in android build both normal and hit position are jittery and not correct for **sphere cast**.

[Image Removed]

Here is an example of incorrect hit on android device, please note white & red arrows (normals for ray cast & sphere cast)

[Image Removed]

[Image Removed]

Similar situation from editor’s correct behavior:

[Image Removed]

Issue is clear from videos which are part of the attachment: SphereCastAndroid.mp4 & SphereCastEditor.mkv

On android device, it is easy to see how jittery and incorrect resulting hits are.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 2, 2025, 6:36pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/2 "2025-04-02T18:36:50Z")

</div>

**Steps to Reproduce**

- open attached project and ThirdPersonMap
- Run the level and fly around with debug pawn inside cave collider
- Raycats and sphere casts are implemented in BP\_DebugPawn event graph
- Observe results in editor
- Use quick launch and run on android device
- Observe incorrect hits and jittery normals for red arrow when pawn is moving or rotating

---

<div class="post-metadata">

**Author:** ![geoffstacey\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoffstacey\_work](https://forums.unrealengine.com/u/geoffstacey_work)\
**Post date:** [May 1, 2025, 1:01pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/3 "2025-05-01T13:01:13Z")

</div>

Hi Martin, and thank you for reaching out.

I’ve heard of a couple of similar issues over the past few months, but nothing which we’ve been able to get a repro on, so the attached project is very much appreciated! The other cases have been more rare edge case though - so I am really curious to dig into what the underlying issue is there.

My expectation is that there is a floating point issue somewhere, either through instruction reordering, or SIMD operations.

I’ll dig into and get back to you!

All the best

Geoff Stacey

Developer Relations

---

<div class="post-metadata">

**Author:** ![geoffstacey\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoffstacey\_work](https://forums.unrealengine.com/u/geoffstacey_work)\
**Post date:** [May 1, 2025, 3:18pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/4 "2025-05-01T15:18:44Z")

</div>

Hi Martin,

If you have access to our perforce mainline, could you pick CL 41276716 and CL 41495985 and let me know if that fixed your issue please? These are both improvements to the collision detection algorithms which may solve this. I can’t actually reproduce this on latest (although I do get the issue on 5.5 so it does look to have been fixed.

All the best

Geoff

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 12, 2025, 9:03am UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/5 "2025-05-12T09:03:19Z")

</div>

Hello [mention removed]​, sorry for late response. It took me a while to get access from our IT. Looks like those two provided CL’s are restricted and we don’'t have access to them.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 15, 2025, 1:48pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/6 "2025-05-15T13:48:01Z")

</div>

Confirming it is fixed in 5.6

---

<div class="post-metadata">

**Author:** ![geoffstacey\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoffstacey\_work](https://forums.unrealengine.com/u/geoffstacey_work)\
**Post date:** [May 15, 2025, 1:57pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/7 "2025-05-15T13:57:43Z")

</div>

Hi Martin,

Great to hear. Do you still require the CLs or are you going to upgrade to 5.6?

Geoff

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 15, 2025, 3:07pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/8 "2025-05-15T15:07:44Z")

</div>

We will be upgrading to 5.6 Thanks for the support! 🙂

---

<div class="post-metadata">

**Author:** ![geoffstacey\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoffstacey\_work](https://forums.unrealengine.com/u/geoffstacey_work)\
**Post date:** [May 15, 2025, 3:12pm UTC](https://forums.unrealengine.com/t/sphere-casts-returning-wrong-hit-against-mesh-colliders-on-android/2556271/9 "2025-05-15T15:12:01Z")

</div>

No worries Martin, glad to hear all sorted! I’ll get this closed off in that case.

All the best

Geoff
