liveBook · Manning

Gyroscope

As explained in Web Components in Action

A gyroscope is a sensor that measures angular velocity or rotational movement.

A gyroscope measures how fast a phone rotates in a particular direction. In mobile 3D and mixed-reality experiences, rotation data helps translate head movement into the viewer’s perspective. section 15.2

A gyroscope contributes to head tracking alongside:

  • An accelerometer, which detects movement speed in a direction. section 15.2
  • A magnetometer, which indicates the phone’s compass direction. section 15.2
  • Sensor-fusion algorithms, which combine these measurements to determine head movement more accurately. section 15.2

Phone-based virtual reality

Place a phone in a cardboard viewer and look around: gyroscope data reports rotational head movement, allowing a 3D scene to respond instead of relying on mouse dragging. Split viewpoints can then create a stereo effect. section 15.2

How Web Components in Action covers it

How deep it goes
Defines rotational sensing and its role in sensor fusion, but defers the mathematics and code implementing head tracking.
Examples
Uses a phone in a cardboard viewer, head-and-eye gaze, and mouse-driven versus head-driven scene navigation.
What you can do after
Evaluate how phone rotation contributes to responsive virtual-reality viewing and combined sensor-based head tracking.
How it connects
Connects gyroscopes with accelerometers, magnetometers, sensor fusion, virtual reality, and 3D scenes.

This explainer was generated by Manning's knowledge graph from the text of Web Components in Action. The section links point to the parts of the book it draws on.