Exemplo n.º 1
0
 /// <summary>Broadcast the Impulse Signal onto the appropriate channels,
 /// using a custom position and impact velocity</summary>
 /// <param name="position">The world-space position from which the impulse will emanate</param>
 /// <param name="velocity">The impact magnitude and direction</param>
 public void GenerateImpulseAtPositionWithVelocity(Vector3 position, Vector3 velocity)
 {
     if (m_ImpulseDefinition != null)
     {
         m_ImpulseDefinition.CreateEvent(position, velocity);
     }
 }
Exemplo n.º 2
0
 public void CameraShakeNoise(float magnitude)
 {
     if (m_ImpulseDefinitionNoise != null)
     {
         m_ImpulseDefinitionNoise.CreateEvent(transform.position, Vector3.down * magnitude);
     }
 }