Description
The StopAllHaptics
method is a public instance method of the VRController
class in the Sandbox.VR
namespace. This method is used to stop all ongoing haptic feedback events on the VR controller. Haptic feedback, often referred to as rumble or vibration, is a tactile response that can be used to enhance the user experience by providing physical feedback in response to in-game events.
Usage
To use the StopAllHaptics
method, you need to have an instance of the VRController
class. Once you have the instance, you can call this method to stop any haptic feedback that is currently active on the controller. This can be useful in scenarios where you want to ensure that no haptic feedback is being played, such as when a game is paused or when transitioning between different game states.
Example
// Assuming 'controller' is an instance of VRController
controller.StopAllHaptics();
// This will stop all haptic feedback on the specified VR controller.