Camera Spring Arm on Vehicle

Hi all,

I have a vehicle set up with a spring arm, the spring arm rotates the camera in sync with the rotation of the Player Controller and I am generally happy how it works.

However when I move a second player on top of the vehicle, and then move the camera up, the player will hit the spring arm and the spring arm will jump into the vehicle. This happens even though there is enough space behind the spring arm so I would like the spring arm to ignore super close objects.


I tried to move the spring arm but then the center of rotation is no longer in the center of the vehicle.

How can I make sure that the Spring Arm ignores obstacles that are close to the center?

Thanks in advance

Hey there @NEVQ151!
image

You can uncheck this setting and it won’t be blocked by anything!

That said, it comes with a major problem. Now if you back into something, you clip the camera into the wall!

If anything else in your game relies on camera’s colliding, then you just have to go over to the player and set their collisions for custom and have them ignore cameras (or overlap if you wanna be informed about it). You could even make your own trace channel and have them ignore that if you don’t wanna ignore every camera tagged collision.

Hope this helps!

3 Likes

Thanks! Setting the Player to Ignore Camera does the trick to prevent the spring arm from jumping needlessly in front of other player characters and I am going to leave it like that for now. I am thinking to create an overlap event with the camera itself to move it closer in case it happens to be inside another player to prevent clipping, but thats an optimization for the future.