[Solved] Capsule component rotate with the camera

Hello,

So I have a FPS character blueprint and the thing is, when I look down, up or left/right, the capsule move too.
When i’m near a wall if I look down the camera rotate (from the pivot point of the capsule, which is in is center) i can see through the wall.

My question is how can i fix it ?
I suppose there is something to do to make sure the capsule not move.

Thank you ^^

This is a little interesting to me because usually the point of rotation is about your camera. If your camera is where it is in the picture there then it shouldn’t really go through the wall because it’s behind the yz plane and the pivot point should be behind your view.

What I would try is maybe add a spring arm and attach the camera to it. Can you show a picture of you before you look down and what it looks like when you are looking down?

Thank you for the respond.

The spring arm doesn’t seem to work, the entire capsule is moving and the camera still go through the wall at some point.

Here is a picture of when i look down and a part of the blueprint.

EDIT: And of course I have collision trouble when i walk and look straight up or down.

(I move the camera back to see better).

Problem solved ! :smiley:

In " BP_Character (self) " there was an option to untick: use controller rotation pitch.
and that’s it !

sorry for the post, but maybe it will help someone. ;p

1 Like

Thanks! This is exactly what I was looking for, I had the same problem.

I really appreciate that you posted the answer.

Saved my life… I have wasted 1 full day just trying different solutions