예제 #1
0
 internal override void UpdateData()
 {
     _actionData = OpenVRWrapper.GetAnalogActionData(handle);
 }
 /// <summary>
 /// Triggers a haptic vibration action.
 /// </summary>
 /// <param name="durationSeconds">How long to trigger the haptic event for.</param>
 /// <param name="magnitude">The magnitude of the haptic event. This value must be between 0.0 and 1.0.</param>
 /// <param name="frequency">The frequency in cycles per second of the haptic event.</param>
 public void TriggerHapticVibration(float durationSeconds, float magnitude, float frequency = 150f)
 {
     OpenVRWrapper.TriggerHapticVibrationAction(handle, 0, durationSeconds, frequency, magnitude);
 }
예제 #3
0
 internal void UpdateHandle()
 {
     handle = OpenVRWrapper.GetActionHandle(name);
 }
예제 #4
0
 internal override void UpdateData()
 {
     _actionData  = OpenVRWrapper.GetSkeletalActionData(handle);
     _summaryData = OpenVRWrapper.GetSkeletalSummaryData(handle);
 }