The RCWeb Tilt Maze Control App (app/tilt-maze-control) acts as a dedicated 6-axis hardware sensor module. Relying on the Asymmetric Pattern, it extracts live orientation telemetry from mobile accelerometers and broadcasts it to the main 3D engine.

tiltX and tiltZ vectors.The core script.js resolves numerous mobile browser security workarounds to achieve clean streaming telemetry.
DeviceOrientationEvent behind a strict user-gesture permission wall, the UI requires the user to manually click an "Enable Motion" button, resolving a Promise before native polling can commence.beta (forward/back) and gamma (left/right) rotational degrees. It tracks a baseline offset derived from the exact physical angle the phone was held at when the app initialized via deltaAngle.DeviceOrientationEvent often fires 60-120 times a second, which would instantly flood the WebSocket. The engine manually intercepts the event loop, securely buffering the state and implementing a strict SEND_INTERVAL_MS = 100 exit gate to limit outbound packets to a safe 10hz.window.screen.orientation.lock("portrait") preventing the browser from scrambling the X/Y axes if the player tilts their phone too aggressively downward.