Description
The HardImpact
property of the HapticEffect
class provides a predefined haptic pattern that simulates a hard, sudden impact. This static property can be used to apply a strong, immediate feedback to the user's controller, enhancing the immersive experience in scenarios such as collisions or heavy object interactions.
Usage
To use the HardImpact
haptic effect, you can directly access it as a static property of the HapticEffect
class. This property is typically used in conjunction with a method that applies the haptic effect to a controller or device.
Example
// Example of using the HardImpact haptic effect
// Assuming you have a method to apply haptic effects to a controller
void ApplyHapticEffectToController(HapticEffect effect)
{
// Implementation to apply the effect
}
// Use the HardImpact effect
ApplyHapticEffectToController(HapticEffect.HardImpact);