# Simple collision not working

**URL:** <https://forums.unrealengine.com/t/simple-collision-not-working/403466>\
**Category:** World Creation\
**Tags:** collision-meshes, unreal-engine, Physics, Collision, question\
**Created:** [September 1, 2017, 11:21am UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466 "2017-09-01T11:21:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_dd537c6e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dd537c6e](https://forums.unrealengine.com/u/anonymous_user_dd537c6e)\
**Post date:** [September 1, 2017, 11:21am UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/1 "2017-09-01T11:21:03Z")

</div>

I have an imported mesh, simple sphere.  
Added Sphere Simplified Collision in the editor, selected Block All.  
Placed it in the world, made sure was configured to Block All.  
~Show Collision displays the wire frame indicating collision is there.

Nothing, walk right through it. Also, hit events don’t pick it up.

This stuff drives me nuts. How hard is it to set up simple collision of an object?

alt text

![211839-nocollision2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/b/e9b769c2a48e61c671e1fb182e02c65dcc74fae5.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dd537c6e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dd537c6e](https://forums.unrealengine.com/u/anonymous_user_dd537c6e)\
**Post date:** [September 1, 2017, 12:24pm UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/2 "2017-09-01T12:24:58Z")

</div>

Back to the drawing board, in this case 3DS Max, I created 3 box meshes: 100x100, 200x200, and 250x250.

The only one that blocks me or gets a hit result is the large 250x250 box.

This can’t be right. Is there a setting somewhere to detect smaller objects or is this the minimum detection size?

---

<div class="post-metadata">

**Author:** ![SMCCAR25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SMCCAR25](https://forums.unrealengine.com/u/SMCCAR25)\
**Post date:** [September 1, 2017, 3:14pm UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/3 "2017-09-01T15:14:12Z")

</div>

In the editor, in the collision tab, try REMOVE ALL COLLISION then ADD SPHERE COLLISION.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dd537c6e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dd537c6e](https://forums.unrealengine.com/u/anonymous_user_dd537c6e)\
**Post date:** [September 1, 2017, 4:18pm UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/4 "2017-09-01T16:18:45Z")

</div>

I created another blueprint, same object and settings, worked fine. Was easier to redo than figure out the root cause.

---

<div class="post-metadata">

**Author:** ![feiwu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@feiwu](https://forums.unrealengine.com/u/feiwu)\
**Post date:** [September 2, 2017, 3:02am UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/5 "2017-09-02T03:02:24Z")

</div>

The root component need to be subclass of UPrimitiveComponent,  
So if you set the root component to SceneComponent, it will not block anything.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_95a42085](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_95a42085](https://forums.unrealengine.com/u/anonymous_user_95a42085)\
**Post date:** [November 22, 2017, 4:10am UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/6 "2017-11-22T04:10:51Z")

</div>

Thanks, your answer helped me out

---

<div class="post-metadata">

**Author:** ![Bukhari009pppk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bukhari009pppk](https://forums.unrealengine.com/u/Bukhari009pppk)\
**Post date:** [January 5, 2021, 8:46am UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/7 "2021-01-05T08:46:52Z")

</div>

how do i do that? please help…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e5a4ceb5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e5a4ceb5](https://forums.unrealengine.com/u/anonymous_user_e5a4ceb5)\
**Post date:** [February 26, 2022, 10:44pm UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/8 "2022-02-26T22:44:15Z")

</div>

I am posting since I was looking for a solution and found it while googling. Also, I am replying to Bukhari009pppk, so they see it.

I was following this tutorial to create a player and a camera that follows the player. This one to be exact:

> **[Player-Controlled Cameras](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/CPPTutorials/PlayerCamera/)**
>
> Learn to manipulate a Camera and a Pawn at the same time, using player input.

The problem with the code was that the root component with the static mesh went through the block volumes. At first, I thought it was the static mesh itself but thanks to Feiwu, I found that I was wrong.

This is what I did to fix it:

In this part of the code:

```auto
  RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("RootSceneComponent"));
    StaticMeshComp = CreateDefaultSubobject <UStaticMeshComponent>(TEXT("StaticMeshComponent"));
    SpringArmComp = CreateDefaultSubobject<USpringArmComponent>(TEXT("SpringArmComponent"));
    CameraComp = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent"));

```

Instead of USceneComponent, I used UPrimitiveComponent and voila! Everything started working perfectly!

I guess I’ve written a bit too much, but it took me way too much time to find the actual answer. Everyone goes through the stage of learning and I hope this post helps more people.

---

<div class="post-metadata">

**Author:** ![Jase2111](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jase2111/32/1194612_2.png) [@Jase2111](https://forums.unrealengine.com/u/Jase2111)\
**Post date:** [March 2, 2023, 5:56pm UTC](https://forums.unrealengine.com/t/simple-collision-not-working/403466/9 "2023-03-02T17:56:13Z")

</div>

How would that work with blueprints?
