Created: 2017-04-15 — modified: 2017-04-16 — tags: Space
Now we want to have a character (a pilot) to walk on the ship.
To achieve this, we'll use reworked PointerLockControls.js from three.js.
To play with below demo, click the image - it will grab your mouse pointer - and use following controls:
- WASD and RF - move the ship,
- arrow keys and QE - rotate the ship,
- YGHJ - move the pilot,
- mouse - turn the pilot