CameraCollisionSettings
Class in Zigurous.CameraSystem
Inherits from CameraBehaviorSettings<T>
Declaration
[Serializable]
public sealed class CameraCollisionSettings : CameraBehaviorSettings<CameraCollision>
Description
Settings for camera collision.
Properties
occlusionMask | 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. |
cameraRadius | 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. |
smoothingIn | How quickly the camera changes position when collision causes the camera to move closer to the subject. Smaller numbers make the camera move quicker. |
smoothingOut | How quickly the camera changes position when collision causes the camera to move further from the subject. Smaller numbers make the camera move quicker. |
resetDelay | 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. |
minOcclusionDistance | The minimum occlusion distance from the camera. Sometimes you want to leave at least a little bit of space between the camera and the character while occluding. |
Inherited
Properties
active | Whether the settings are active on a camera profile. Inactive settings will not display in the editor. |
enabled | Turns on or off the settings behavior. Enabled behaviors are updated every frame. |
isActiveAndEnabled | Whether the settings are active and enabled. |