Class CinemachineSameAsFollowTarget
This is a CinemachineComponent in the Aim section of the component pipeline. Its job is to match the orientation of the Follow target.
Inheritance
CinemachineSameAsFollowTarget
Inherited Members
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[AddComponentMenu("")]
public class CinemachineSameAsFollowTarget : CinemachineComponentBase
Fields
m_Damping
How much time it takes for the aim to catch up to the target's rotation
Declaration
[Tooltip("How much time it takes for the aim to catch up to the target's rotation")]
[FormerlySerializedAs("m_AngularDamping")]
public float m_Damping
Field Value
Type | Description |
---|---|
Single |
Properties
IsValid
True if component is enabled and has a Follow target defined
Declaration
public override bool IsValid { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Stage
Get the Cinemachine Pipeline stage that this component implements. Always returns the Aim stage
Declaration
public override CinemachineCore.Stage Stage { get; }
Property Value
Type | Description |
---|---|
CinemachineCore.Stage |
Overrides
Methods
GetMaxDampTime()
Report maximum damping time needed for this component.
Declaration
public override float GetMaxDampTime()
Returns
Type | Description |
---|---|
Single | Highest damping setting in this component |
Overrides
MutateCameraState(ref CameraState, Single)
Orients the camera to match the Follow target's orientation
Declaration
public override void MutateCameraState(ref CameraState curState, float deltaTime)
Parameters
Type | Name | Description |
---|---|---|
CameraState | curState | The current camera state |
Single | deltaTime | Not used. |