Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

[VisionGlass] Use ElboxModel for the phone controller #1240

Closed svillar closed 7 months ago

svillar commented 7 months ago

The VisionGlass system uses the phone as controller. It's a 3DoF device as it does not report position, only orientation via the accelerometer. This means that we need then to estimate the position of the phone in users' hands to create a beam and a pointer.

We were not doing it properly and thus, the direction of the pointer and the direction of the beam didn't really match. Fortunately we do already have an utility class, ElbowModel, that properly computes that for us. It's used for other 3DoF devices.