float FrequencyScale

robot_2Generated
code_blocksInput

Description

The FrequencyScale field in the HapticPattern class represents a scaling factor applied to the frequency values of the haptic pattern. This field is used to adjust the intensity or strength of the frequency component of the haptic feedback.

Usage

Use the FrequencyScale field to modify the frequency intensity of a haptic pattern. This can be useful when you want to dynamically adjust the feedback strength based on user preferences or specific application requirements.

Example

// Example of using FrequencyScale in a HapticPattern
HapticPattern pattern = new HapticPattern();

// Set the frequency scale to a desired value
pattern.FrequencyScale = 1.5f;

// Use the pattern in your application
// This will apply the frequency scale to the haptic feedback
pattern.GetValue(0.5f, out float frequency, out float amplitude);

// frequency and amplitude now reflect the scaled values