# How do I prevent the sphere from going through the wall?

**URL:** <https://forums.unrealengine.com/t/how-do-i-prevent-the-sphere-from-going-through-the-wall/2636095>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 9, 2025, 6:35pm UTC](https://forums.unrealengine.com/t/how-do-i-prevent-the-sphere-from-going-through-the-wall/2636095 "2025-08-09T18:35:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmayk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mmayk](https://forums.unrealengine.com/u/mmayk)\
**Post date:** [August 9, 2025, 6:35pm UTC](https://forums.unrealengine.com/t/how-do-i-prevent-the-sphere-from-going-through-the-wall/2636095/1 "2025-08-09T18:35:29Z")

</div>

I’m using the Blueprint below, but when the sphere collides with a wall it goes through and goes to the other side.

 ![Captura de tela 2025-08-09 152805](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/6/d9628ad52ac2cea6282764318aa19cf273328cab.png)

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 9, 2025, 11:40pm UTC](https://forums.unrealengine.com/t/how-do-i-prevent-the-sphere-from-going-through-the-wall/2636095/2 "2025-08-09T23:40:13Z")

</div>

Do you get a Blocking Hit? I mean do you ever go through the Branch?

If not - Probably tour collisions are not set correctly for both objects.

If you do, make sure that Lastposition is not intersecting.

Lastly, check if it’s not the order of operations that fails you. I am not entirely sure but I depending on how the tick is set (before or after physics) you might get outdated (previous tick) hit information.

Try to set your tick before/during/after physics and if that fails try splitting your logic in two ticks: first - the move and second is the correction or try to set your tick during physics.

P.S. If collision is set correctly you shouldn’t have to write your logic to correct penetrations. If both objects are blocking each other they should never intersect and the physics engine should handle that. Also the hit result has a Location which is “the position where we can place the shape in the world where it will not penetrate” - I suspect that this is what you want.

---

<div class="post-metadata">

**Author:** ![mmayk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mmayk](https://forums.unrealengine.com/u/mmayk)\
**Post date:** [August 10, 2025, 1:47am UTC](https://forums.unrealengine.com/t/how-do-i-prevent-the-sphere-from-going-through-the-wall/2636095/3 "2025-08-10T01:47:02Z")

</div>

Apparently, it was the Angle value that was being increased, making the sphere pass through the wall. Here’s how it turned out:

 ![Captura de tela 2025-08-09 224255](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/8/1e89aab67d89a2a1e41e8000ecfd0e5e5285f32d.png)
