Class CinemachineImpulseManager.ImpulseEvent
Describes an event that generates an impulse signal on one or more channels. The event has a location in space, a start time, a duration, and a signal. The signal will dissipate as the distance from the event location increases.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
public class CinemachineImpulseManager.ImpulseEvent
Fields
Name | Description |
---|---|
Channel | Channels on which this event will broadcast its signal. |
Custom |
How the effect fades with distance. 0 = no dissipation, 1 = rapid dissipation, -1 = off (legacy mode) |
Direction |
How the signal direction behaves as the listener moves away from the source. |
Dissipation |
Distance over which the dissipation occurs. Must be >= 0. |
Dissipation |
How the signal dissipates with distance. |
Envelope | Time-envelope of the signal. |
Position | World-space origin of the signal. |
Propagation |
The speed (m/s) at which the impulse propagates through space. High speeds allow listeners to react instantaneously, while slower speeds allow listeners in the scene to react as if to a wave spreading from the source. |
Radius | Radius around the signal origin that has full signal value. Distance dissipation begins after this distance. |
Signal |
Raw signal source. The output of this will be scaled to fit in the envelope. |
Start |
Start time of the event. |
Properties
Name | Description |
---|---|
Expired | Returns true if the event is no longer generating a signal because its time has expired |
Methods
Name | Description |
---|---|
Cancel(float, bool) | Cancel the event at the supplied time |
Clear() | Reset the event to a default state |
Distance |
Calculate the the decay applicable at a given distance from the impact point |
Get |
Get the signal that a listener at a given position would perceive |