[three.js] カメラ移動

kos

License: MIT License

Fork
0
Fav
0
View
2149
  • Play

Fullscreen

Smart Phone

  • Readme
  • JavaScript 213 lines
  • HTML 4 lines
  • CSS 10 lines
MineCraftのクリエイティブっぽくカメラを操作できます。
WASDで平行移動、space/shiftで上下移動、マウスドラッグでカメラが回転します。

参考
https://github.com/mrdoob/three.js/blob/master/examples/js/controls/PointerLockControls.js
https://github.com/mrdoob/three.js/blob/master/examples/js/controls/FirstPersonControls.js
https://github.com/mrdoob/three.js/blob/master/examples/js/controls/FlyControls.js
  • [three.js] カメラ移動
  • [three.js] カメラ移動

play

Complete!

Description What kind of game?

Control Device

jsdo.it websocket controller

Mouse

keyboard

smartphone

Fullscreen

kos

Author

Default Panel

Size

  • Width: px
  • Height: px

code

QR Code

Discussion

Questions on this code?

Tags