Class CinemachineIndependentImpulseListener
This behaviour can be attached to any object to make it shake in response to Impulses.
This behaviour can be attached to the main Camera with the CinemachineBrain, to allow the main camera to shake without putting Listeners on the virtual cameras. In this case, camera shake is not dependent on the active virtual camera.
It is also possible to put this behaviour on other scene objects to shake them in response to impulses.
Namespace: Cinemachine
Syntax
public class CinemachineIndependentImpulseListener : MonoBehaviour
Fields
m_ChannelMask
Impulse events on channels not included in the mask will be ignored.
Declaration
public int m_ChannelMask
Field Value
Type | Description |
---|---|
Int32 |
m_Gain
Gain to apply to the Impulse signal.
Declaration
public float m_Gain
Field Value
Type | Description |
---|---|
Single |
m_Use2DDistance
Enable this to perform distance calculation in 2D (ignore Z).
Declaration
public bool m_Use2DDistance
Field Value
Type | Description |
---|---|
Boolean |