Camera Controls in Three.js: FirstPersonControls
Learn how to use the FirstPersonControls in Three.js.
We'll cover the following...
We'll cover the following...
The FirstPersonControls
As the name implies, FirstPersonControls
allows us to control the camera just like in a first-person shooter. The mouse is used to look around, and the keyboard is used to walk around. The following screenshot shows a still image (from the example given in the below playground):
Press + to interact