Relative Content

Tag Archive for c#unity-game-enginevirtual-reality

C# Script Does Not Work as Intended and I Can’t Figure Out Why?

I’m creating an experiment in Unity using some C# and it nearly completely works, except for Haptic Scenario 3. In the experiment, there are 4 scenarios – a visual only scenario, a haptics only scenario, a haptics then visual scenario and a visual then haptics scenario. 3 of these scenarios work exactly as intended, but for the life of me I can’t get Haptic Scenario 3 to work properly. The visual and haptic modalities appear in the correct order, but the game object does not follow the tracked point properly for some reason / the game object movement code does not work in the same way it works for the other 3. Does anyone know why this is from just looking at the code?