# (RESOLVED) Camera through object

**URL:** <https://forums.unrealengine.com/t/resolved-camera-through-object/409807>\
**Category:** World Creation\
**Tags:** unreal-engine, Collision, objects, walls, question\
**Created:** [November 16, 2017, 4:34pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807 "2017-11-16T16:34:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Young\_Pope](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Young\_Pope](https://forums.unrealengine.com/u/Young_Pope)\
**Post date:** [November 16, 2017, 4:34pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/1 "2017-11-16T16:34:56Z")

</div>

**When I move camera, it goes through objects. What have I to do to avoid this problem? In all games the camera block when bumping walls and so on.**

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2017, 5:12pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/2 "2017-11-16T17:12:43Z")

</div>

Attach the camera to a _Springarm_ component; then, in the Springarm settings, you can control the size of the probe and other things:

 ![220366-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/1/f114adfdae8dfec1012058519aa54549a6eeb8c1.png)

Enabling camera lag will give you nice, automatic smooth interpolation, too. Give it a try.

---

<div class="post-metadata">

**Author:** ![Young\_Pope](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Young\_Pope](https://forums.unrealengine.com/u/Young_Pope)\
**Post date:** [November 16, 2017, 5:24pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/3 "2017-11-16T17:24:57Z")

</div>

No, it doesn’t work

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2017, 7:40pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/4 "2017-11-16T19:40:03Z")

</div>

It does work. It’s even in the 3rd person template that comes with the engine…

Show us how you set it up.

---

<div class="post-metadata">

**Author:** ![Young\_Pope](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Young\_Pope](https://forums.unrealengine.com/u/Young_Pope)\
**Post date:** [November 16, 2017, 8:49pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/5 "2017-11-16T20:49:50Z")

</div>

![220405-cattura.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/f/caf643d3236c8c226365b020bf03b20ec8693e94.jpeg)

 ![220406-cattura1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/9/ea9b345fa9190dabc1ad28e183b6eca1214e9488.png)

 ![220407-cattura2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/f/52faac7814831e3fe6e567c9503d5aeb189560e8.png)

 ![220408-cattura3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/e/1fef3a3cd24fe9d59e5dfd5e867b64b19001c2bf.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2017, 9:08pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/6 "2017-11-16T21:08:17Z")

</div>

You already have a springarm - CameraBoom is just a renamed spring arm - make sure collision is enabled there. You do not need the second one.

Does your level geometry have collision?

---

<div class="post-metadata">

**Author:** ![Young\_Pope](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Young\_Pope](https://forums.unrealengine.com/u/Young_Pope)\
**Post date:** [November 16, 2017, 9:34pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/7 "2017-11-16T21:34:54Z")

</div>

I’ve tried but nothing. Can you send me your setting just you say it works for you?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2017, 10:02pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/8 "2017-11-16T22:02:16Z")

</div>

There are no settings, that’s the default behaviour. Just run the 3rd person example that came with the engine. You have a perfect example right there.

[![https://gyazo.com/749deba2487bc31239462f3c6b6fa1a7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/7/4a7526edb4910ad0b81ef98bd136d642419fc789.gif)](https://gyazo.com/749deba2487bc31239462f3c6b6fa1a7)

---

<div class="post-metadata">

**Author:** ![Young\_Pope](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Young\_Pope](https://forums.unrealengine.com/u/Young_Pope)\
**Post date:** [November 16, 2017, 10:06pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/9 "2017-11-16T22:06:19Z")

</div>

So… I think it depends by the objects in the world. In the exemple level there are preset objects, maybe they are setted in order to avoid this problem, What do you think?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2017, 10:47pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/10 "2017-11-16T22:47:36Z")

</div>

You will need collision for that. What are your walls’ collision settings?

The probe on the springarm uses a Camera channel to test collision so you need to ensure that the level geometry has is enabled as well (among other channels that handle collision, that is):

![220445-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/8/a28c0cfc1d1a2991da21d9807c3cb46e7db0d226.png)

You’d need to ensure that your meshes have collision in the first place, too.

---

<div class="post-metadata">

**Author:** ![Young\_Pope](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Young\_Pope](https://forums.unrealengine.com/u/Young_Pope)\
**Post date:** [November 16, 2017, 11:07pm UTC](https://forums.unrealengine.com/t/resolved-camera-through-object/409807/11 "2017-11-16T23:07:14Z")

</div>

I’ve resolved. I changed the position of the camera and so it disconnected by the spring arm. I’ve reset its location and now it works. Thank for time spent for me!
