UxrControllerInput.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#
public void SendGrabbableHapticFeedback(
UxrGrabbableObject grabbableObject,
UxrHapticClipType clipType,
float amplitude = 0.6f,
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 (Optional)
- 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?
Implements
See Also
Reference
UxrControllerInput Class
SendGrabbableHapticFeedback Overload
UltimateXR.Devices Namespace