IUxrControllerInput.SendGrabbableHapticFeedback Method (UxrGrabbableObject, UxrHapticClipType, Single, Single, UxrHapticMode)
Sends haptic feedback to XR controllers that are being used to manipulate a grabbable object. Each hand associated to an XR controller that is grabbing the object will receive haptic feedback.
Namespace: UltimateXR.Devices
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
void SendGrabbableHapticFeedback(
UxrGrabbableObject grabbableObject,
UxrHapticClipType clipType,
float amplitude,
float durationSeconds = -1f,
UxrHapticMode hapticMode = UxrHapticMode.Mix
)
Parameters
- grabbableObject
- Type: UltimateXR.Manipulation.UxrGrabbableObject
Grabbable object - clipType
- Type: UltimateXR.Haptics.UxrHapticClipType
Clip type to send - amplitude
- Type: System.Single
Intensity of the haptic feedback - durationSeconds (Optional)
- Type: System.Single
Duration in seconds - hapticMode (Optional)
- Type: UltimateXR.Haptics.UxrHapticMode
Override current haptic feedback or mix it?
See Also
Reference
IUxrControllerInput Interface
SendGrabbableHapticFeedback Overload
UltimateXR.Devices Namespace