- Home /
Question by
mustang4484 · Feb 18, 2021 at 02:56 PM ·
rotationquaternionworldspacequaternionscompass
Get real compass direction
Hi guys
I'm trying the compass in unity, but is possible rotate a virtual object always with rotation similar to real north? In this function i can get the value than the nord direction, but the rotation is different between unity system degree and compass.
transform.rotation = Quaternion.Euler(0, (Input.compass.magneticHeading), 0);
input.compass.magnt....is a float value.
Any suggestion?
Best regards
Comment
Answer by Waterpolo7 · Feb 18, 2021 at 10:04 PM
@mustang4484 Is the North calculated in degrees or radians?