FL
FluidLab
Interactive Demo

Device Motion Simulation

This demo uses your device's motion sensors to control fluid dynamics. Tilt your device to see the fluid respond to gravity and motion. On desktop, you can use your mouse to simulate tilting.

Device Motion Permission Required

This demo requires access to your device's motion sensors to create interactive fluid animations.

How It Works

This simulation uses the DeviceMotion API to detect changes in your device's orientation and acceleration. These values are then mapped to forces that affect the fluid particles in the simulation.

Features:

  • Responsive fluid dynamics that react to device tilting
  • Automatic fallback to mouse control on desktop devices
  • Particle system with thousands of interactive elements
  • Dynamic connection lines between nearby particles