Class CinemachineImpulseSource
An event-driven class that broadcasts an impulse signal to listeners.
This is the base class for custom impulse sources. It contains an impulse definition, where the characteristics of the impulse signal are defined.
API methods are fined for actually broadcasting the impulse. Call these methods from your custom code, or hook them up to game events in the Editor.
상속된 멤버
네임스페이스: Cinemachine
어셈블리: solution.dll
구문
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
public class CinemachineImpulseSource : MonoBehaviour
필드
| 이름 | 설명 |
|---|---|
| m_ImpulseDefinition | This defines the complete impulse signal that will be broadcast. |
메서드
| 이름 | 설명 |
|---|---|
| GenerateImpulse() | Broadcast the Impulse Signal onto the appropriate channels, with default velocity = (0, -1, 0), and a default position which is this transform's location. |
| GenerateImpulse(Vector3) | Broadcast the Impulse Signal onto the appropriate channels, using a custom impact velocity, and this transfom's position. |
| GenerateImpulseAt(Vector3, Vector3) | Broadcast the Impulse Signal onto the appropriate channels, using a custom position and impact velocity |