Struct CinemachineDecollider.TerrainSettings
Settings for putting the camera on top of the terrain
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct CinemachineDecollider.TerrainSettings
Fields
Damping
How gradually the camera returns to its normal position after having been corrected. 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. Higher numbers will move the camera more gradually back to normal.")]
public float Damping
Field Value
Type | Description |
---|---|
float |
Enabled
When enabled, will attempt to place the camera on top of terrain layers
Declaration
[Tooltip("When enabled, will attempt to place the camera on top of terrain layers")]
public bool Enabled
Field Value
Type | Description |
---|---|
bool |
MaximumRaycast
Specifies the maximum length of a raycast used to find terrain colliders.
Declaration
[Tooltip("Specifies the maximum length of a raycast used to find terrain colliders")]
public float MaximumRaycast
Field Value
Type | Description |
---|---|
float |
TerrainLayers
Colliders on these layers will be detected.
Declaration
[Tooltip("Colliders on these layers will be detected")]
public LayerMask TerrainLayers
Field Value
Type | Description |
---|---|
LayerMask |