Struct CinemachineThirdPersonFollow.ObstacleSettings
Holds settings for collision resolution.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct CinemachineThirdPersonFollow.ObstacleSettings
Fields
CameraRadius
Specifies how close the camera can get to obstacles
Declaration
[Tooltip("Specifies how close the camera can get to obstacles")]
[Range(0, 1)]
public float CameraRadius
Field Value
Type | Description |
---|---|
float |
CollisionFilter
Camera will avoid obstacles on these layers.
Declaration
[Tooltip("Camera will avoid obstacles on these layers")]
public LayerMask CollisionFilter
Field Value
Type | Description |
---|---|
LayerMask |
DampingFromCollision
How gradually the camera returns to its normal position after having been corrected by the built-in collision resolution system. Higher numbers will move the camera more gradually back to normal.
Declaration
[Range(0, 10)]
[Tooltip("How gradually the camera returns to its normal position after having been corrected by the built-in collision resolution system. Higher numbers will move the camera more gradually back to normal.")]
public float DampingFromCollision
Field Value
Type | Description |
---|---|
float |
DampingIntoCollision
How gradually the camera moves to correct for occlusions.
Higher numbers will move the camera more gradually.
Declaration
[Range(0, 10)]
[Tooltip("How gradually the camera moves to correct for occlusions. Higher numbers will move the camera more gradually.")]
public float DampingIntoCollision
Field Value
Type | Description |
---|---|
float |
Enabled
Enable or disable obstacle handling.
If enabled, camera will be pulled in front of occluding obstacles.
Declaration
[Tooltip("If enabled, camera will be pulled in front of occluding obstacles")]
public bool Enabled
Field Value
Type | Description |
---|---|
bool |
IgnoreTag
Obstacles with this tag will be ignored. It is a good idea to set this field to the target's tag
Declaration
[Tooltip("Obstacles with this tag will be ignored. It is a good idea to set this field to the target's tag")]
public string IgnoreTag
Field Value
Type | Description |
---|---|
string |