Weird issue when using haptics on both Touch controllers
I've been implementing haptic feedback for our Touch game. It's gotten to the state where we our quite happy with it.
One issue, however, we are having is that if haptic feedback is active on both controllers at the same time it acts pretty strange.
If only one controller is generating haptic feedback at a time, it successfully generates it every frame.
However when both controllers are generating haptic feedback at the same time, it seems that instead of both controllers generating haptic feedback every frame, it only randomly generates haptic feedback for either controller each frame. So, when frame it might only be generating haptic feedback on the left controller, next frame it might only be generating haptic feedback on the right controller.
Here's a summary of the code we are using
We are using Unity 5.5.0f3 and the newest OVR Unity integration.
Any help would be greatly appreciated.
EDIT: Don't know if it's relevant or not, but we are using Touch engineering samples.
One issue, however, we are having is that if haptic feedback is active on both controllers at the same time it acts pretty strange.
If only one controller is generating haptic feedback at a time, it successfully generates it every frame.
However when both controllers are generating haptic feedback at the same time, it seems that instead of both controllers generating haptic feedback every frame, it only randomly generates haptic feedback for either controller each frame. So, when frame it might only be generating haptic feedback on the left controller, next frame it might only be generating haptic feedback on the right controller.
Here's a summary of the code we are using
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TouchInput : MonoBehaviour
{
public enum ControllerSide { Left, Right };
public ControllerSide controllerSide;
void Start()
{
HapticsClips = new OVRHapticsClip(10);
}
public void ApplyHapticFeedback(byte force)
{
HapticsClips.Reset();
HapticsClips.WriteSample(converted);
if (controllerSide == ControllerSide.Left)
OVRHaptics.LeftChannel.Preempt(HapticsClips);
else if (controllerSide== ControllerSide.Right)
OVRHaptics.RightChannel.Preempt(HapticsClips);
}
}We are using Unity 5.5.0f3 and the newest OVR Unity integration.
Any help would be greatly appreciated.
EDIT: Don't know if it's relevant or not, but we are using Touch engineering samples.
