Skip to main content
100%

Gist fdfa7a2d6967a2178a3bd0f284dc3c12

✓ Published0🌍 Public
UUtopiah
Last edited Nov 7, 2020
Created on Nov 7, 2020

A web page uses a Thingy:52 sensor’s gyroscope data to control a three-dimensional avatar in real time. The animation reads gyro values over Web Bluetooth via the Espruino Puck.js library, and when the rotation exceeds a set threshold, the avatar moves forward in the direction the camera faces. Three.js handles the avatar rig and camera rotation, while a 100-millisecond polling interval updates the position. The code runs only in Chromium because it relies on the Web Bluetooth API.

AI-generated description

Similar vizzes