Camera Collision

At the moment I have it done as in the first photo, but I need to do it as in the second and third photos.

You can attach the Camera Component to a Spring Arm Component, it has Collision Detection built in.

Or if you’re trying to make a custom solution and don’t want to use the Spring Arm, use Sphere trace instead of line trace.

2 Likes

Please tell me how to do it using a sphere trace. I looked all over YouTube and couldn’t find anything.:smiling_face_with_tear:

If it’s a simple collision detection to move camera forward, this should work:

Max Camera Distance is like the Target Arm length in Spring Arm Component. Set it to the distance you want.
Camera Collision Trace Radius = 20 (It’s like the Probe Size property in Spring Arm Component)
Camera Collision Offset = 50 (It’s used to avoid clipping into whatever we’re colliding with)

1 Like

Sorry if I said something wrong, I’m just writing through a translator and don’t really understand English.In the video, when I move the camera behind the object, it gets closer, but it shouldn’t get closer and so that you can’t look inside the object. Thanks for the help