Description
The Rumble
property of the HapticEffect
class provides a predefined haptic effect that applies a simple rumble to the controller. This effect can be used to enhance user experience by providing tactile feedback during gameplay or other interactive applications.
Usage
To use the Rumble
effect, you can access it directly as it is a static property of the HapticEffect
class. You can then apply it to a controller to trigger the rumble effect.
Example
// Example of using the Rumble haptic effect
// Assuming you have a reference to a controller
var controller = GetController();
// Apply the Rumble effect to the controller
controller.ApplyHapticEffect(HapticEffect.Rumble);