-1

I have a car object which has to be rotated when the player head of the cardboard moves. How can I achieve that?

user3071284
  • 6,955
  • 6
  • 43
  • 57
Sahana P
  • 73
  • 1
  • 11

1 Answers1

1

You'll have to hack the CardboardHead.cs class attached to the Head GameObject in the CardboardMain prefab. This is what is handling the rotation based on the Gyro & Accelerometer.

Basically:

  • apply the rotation to CardboardMain, the parent of Head, and not the Head GameObject itself
  • offset the Head in the negative Z axis
  • disable track position