Learn how to move a 3d object using arrow keys in three.js
Learn how to place objects using coordinate system in three.js.
Learn how the computer knows what keys are pressed using keyCodes.
Learn how to listen for keys pressed in the HTML document using an event listener in three.js.
Learn how to use if-else statements to move object based on what key is pressed.
Timestamps:
00:00 Intro/demo
00:19 What is the coordinate system in three.js
01:14 What are keyCodes?
01:44 How to listen for keys pressed using an event listener in three.js
03:13 How to use if-else statements to control object position using arrow keys in three.js
Resources:
keyCode finder:
https://keycode.info/
three.js homepage:
https://threejs.org/
three.js GitHub:
https://github.com/mrdoob/three.js/