Class Cinemachine3rdPersonAim
An add-on module for Cinemachine Virtual Camera that forces the LookAt point to the center of the screen, cancelling noise and other corrections. This is useful for third-person style aim cameras that want a dead-accurate aim at all times, even in the presence of positional or rotational noise.
Inheritance
Inherited Members
Namespace: Cinemachine
Assembly: solution.dll
Syntax
[AddComponentMenu("")]
[ExecuteInEditMode]
public class Cinemachine3rdPersonAim : CinemachineExtension
Fields
Name | Description |
---|---|
AimCollisionFilter | Objects on these layers will be detected. |
AimDistance | How far to project the object detection ray. |
AimTargetReticle | This 2D object will be positioned in the game view over the raycast hit point, if any, or will remain in the center of the screen if no hit point is detected. May be null, in which case no on-screen indicator will appear. |
IgnoreTag | Objects with this tag will be ignored. |
Methods
Name | Description |
---|---|
OnTransitionFromCamera(ICinemachineCamera, Vector3, float) | Notification that this virtual camera is going live. Base class implementation must be called by any overridden method. |
PostPipelineStageCallback(CinemachineVirtualCameraBase, Stage, ref CameraState, float) | This callback will be called after the virtual camera has implemented each stage in the pipeline. This method may modify the referenced state. If deltaTime less than 0, reset all state info and perform no damping. |