Method GetCameraDisplacementDistance
GetCameraDisplacementDistance(ICinemachineCamera)
See how far the virtual camera wa moved nby the collider
Declaration
public float GetCameraDisplacementDistance(ICinemachineCamera vcam)
Parameters
| Type | Name | Description |
|---|---|---|
| ICinemachineCamera | vcam | The virtual camera in question. This might be different from the virtual camera that owns the collider, in the event that the camera has children |
Returns
| Type | Description |
|---|---|
| float | True if the virtual camera has been displaced due to collision or target obstruction |