Hi,
I have a character system working in way that it moves and tilts based on device’s accelerometer. I am changing the gravity as per the gyroscope’s input so that the gravity constantly pulls the character based on device’s tilt.
The way the character system works is as follows: When you tilt the device to right, the character moves right and also leans right. (I add force and torque to the character to get it to work). The same happens when you tilt the device to left.
The problem here is I am not able to get this to work in other device orientations (landscape right, potrait and potrait upsidedown). All the physics get wacky. I was wondering if there’s a way to change the world coordinate system as per the gyro. In that case, wouldn’t it just work for all the orientations if I were able to shift the world coords appropriately?