Collision

The Collision module adjusts the camera's position to avoid colliding with objects or occluding the tracking target.


💥 Settings

The following settings are available to customize:

  • Occlusion Mask: The physics layers that are hit by the camera's raycasts, and thus determine the objects that the camera collides/occludes with. This generally should be the environment layer, which is usually recommended to be the "Default" layer.

  • Camera Radius: The radius of the camera which indicates how close it can get to an object before colliding. This is useful to prevent the camera from clipping through objects.

  • Smoothing In: How quickly the camera changes position when collision causes the camera to move closer to the subject. Smaller numbers make the camera move quicker.

  • Smoothing Out: How quickly the camera changes position when collision causes the camera to move further to the subject. Smaller numbers make the camera move quicker.

  • Reset Delay: The amount of seconds it takes before the camera resets to its normal position after collisions are resolved. This is useful to prevent the camera from repositioning too often when going in and out of collision.

  • Min Occlusion Distance: The minimum distance the camera can get to the tracking target. Sometimes you want to leave at least a little bit of space between the camera and the subject while occluding.


🧰 Scripting API