How to make a collision for capsule and camera?

Hello all, if I have a camera attached to the spring arm attach to the capsule how to prevent the capsule and camera to get inside the static mesh?

I have to add collision to the capsule and then simulate physics but when I hit the mesh the camera flies back toward the sky.

Hey there @TheNoobDeveloper! Welcome to the community! So if I understand your problem your camera is attached to a spring arm and clipping into things it shouldn’t be? Well one way to fix this is to first go to your spring arm, then to camera collision, and make sure Collision test is on and the probe channel is likely camera.
image

Then go to whatever you don’t want the spring arm to make contact with, and set it’s collision for camera trace to ignore.

2 Likes