EscapeShooter/My project/Assets/Project Files/Modules/Haptic/Scripts/Runtime/HapticEvent.cs

19 lines
701 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Watermelon
{
/// <summary>
/// A single vibration event within a <see cref="HapticPattern"/>.
/// </summary>
[System.Serializable]
public class HapticEvent
{
/// <summary>Vibration strength (0–1).</summary>
public float Intensity;
/// <summary>Texture of the vibration — lower values feel more rumble-like, higher values feel more crisp (0–1).</summary>
public float Sharpness;
/// <summary>Time in seconds from the start of the pattern when this event begins.</summary>
public float StartTime;
/// <summary>Duration of this vibration event in seconds.</summary>
public float Duration;
}
}