Looking-Glass / JoyconLib

Joy-Con library for Unity.
MIT License
467 stars 91 forks source link

Gyro or accelerometer #42

Closed r3a1d3a1 closed 3 years ago

r3a1d3a1 commented 3 years ago

The demo video showcases 3D rotation which is usually done using gyro data. I was wondering if this lib actually outputs accelerometer data or has it been mistaken for gyro?

EmilioLizama commented 3 years ago

Hello, in the Joycon.cs files, you can get the gyro data from the joycon with the GetGyro() method, and the accelerometer data with the GetAccel().

r3a1d3a1 commented 3 years ago

Perfect. Thank you!