Uses a Gamepad (e.g. XBox controller) to move a cube around a Three.js scene. Requires Chrome browser and connected gamepad to run.
- Left analog stick moves cube forward/backward and turns left/right.
- Directional pad moves cube forward/backward/left/right.
- Right analog stick only turns cube left/right.
- Right shoulder buttons double speed of movement/turns.
- Start/select buttons reset cube to original position and rotation.
This three.js demo is part of a collection at
http://stemkoski.github.io/Three.js/