Hi, I'm doing some test with impulse. In my scene I only have one single impulse. Calling it is no issue but sometimes after the impulse is played it repeat it self with no real reason. The function is only called once and to be sure I even set amplutude and frequency to 0. Code (CSharp): public CinemachineImpulseDefinition foxImpulse = new CinemachineImpulseDefinition(); public static ImpulseManager instance; void Start() { instance = this; } private void OnValidate() { foxImpulse.OnValidate(); } public void PlayFoxAttackImpulse() { foxImpulse.m_AmplitudeGain = 1.0f; foxImpulse.m_FrequencyGain = 0.8f; foxImpulse.CreateEvent(transform.position, Vector3.down); } public void StopFoxAttackImpulse() { foxImpulse.m_AmplitudeGain = 0.0f; foxImpulse.m_FrequencyGain = 0.0f; }
Can you show the inspector for impulse definition so I can see the settings? The duration of the impulse is controlled by the envelope. Changing settings on the source will have no effect on impulses already emitted - it will affect the next impulse emitted.
That's a very strange envelope, especially the attack. The result should be a tiny double blip lasting less than 0.3s. What is the result that you are seeing? What is the result you are seeking?