...

/

Camera Controls in Three.js: FirstPersonControls

Camera Controls in Three.js: FirstPersonControls

Learn how to use the FirstPersonControls in Three.js.

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
Exploring a scene using the first-person controls
Exploring a scene using the first-person controls

Exam

...