I am working on something similar in Unity using the Polhemus G4 motion tracker(polhemus.com/motion-tracking/all-trackers/g4/). It uses a sensor and magnetic field to track objects. I attach the sensor to my chest and map the readings to an Actor in Unity.
When I attach the sensor to my chest, it is in 90 degree rotation in elevation. To give it a reading of (0,0,0) on which the actor stand straight, I applied Boresight(Tared) available in Polhemus API.
Now when I turn right or left my actor move the same but it starts leaning forward. In that case my actor starts tilting(leaning) forward. I tried both Euler and Quaternions(to avoid Gimbal) but nothing helped. This one issue running me in madness.
Any suggestion will be a great help.
Regards
- Hitesh
When I attach the sensor to my chest, it is in 90 degree rotation in elevation. To give it a reading of (0,0,0) on which the actor stand straight, I applied Boresight(Tared) available in Polhemus API.
Now when I turn right or left my actor move the same but it starts leaning forward. In that case my actor starts tilting(leaning) forward. I tried both Euler and Quaternions(to avoid Gimbal) but nothing helped. This one issue running me in madness.
Any suggestion will be a great help.
Regards
- Hitesh
Comment