HapticEffect HardImpact { get; set; }

book_4_sparkGenerated
code_blocksInput

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, simply access it as a static property of the HapticEffect class. You can then apply it to a controller or other haptic-enabled device to simulate a hard impact.

Example

// Example of using the HardImpact haptic effect

// Assuming 'controller' is an instance of a haptic-enabled device
controller.ApplyHapticEffect(HapticEffect.HardImpact);