6a How to import First Person Controls from local file in three.js

Опубликовано: 03 Октябрь 2024
на канале: flanniganable
2,329
like

FirstPersonControls.js gives the use a first person camera view of the 3d world in three.js. It is linked to key controls W, A, S, D as well as to the arrow keys.

Learn how to find and download FirstPersonControls.js.
Learn how to put FirstPersonControls.js into code editor directory.
Learn how to change path in FirstPersonControls.js to find three.module.js located in code editor directory.
Learn how to start and update FirstPersonControls.js in your three.js project.

Timestamps:
00:00 Intro/demo/controls
00:26 Steps to follow
00:48 How to find and download FirstPersonControls.js in three.js
01:29 How to put FirstPersonControls.js into code editor directory
01:47 How to change path in FirstPersonControls.js to find three.module.js in your code editor directory
02:30 How to start and update FirstPersonControls.js in three.js

Resources:
FirstPersonControls.js file: https://raw.githubusercontent.com/mrd...
FirstPersonControls.js documentation: https://threejs.org/docs/#examples/en... FirstPersonControls.js example: https://threejs.org/examples/#webgl_g...