three-joystick
three-joystick copied to clipboard
A joystick for three.js
用的是vue+three.js, 我把npm i three-joystick 下好的modules移到了static文价夹下 import { RotationJoystickControls } from "@/static/three-joystick"; initCanvas(){ this.rotationJoystick = new RotationJoystickControls(camera, scene, mesh); this.animate() } animate() { requestAnimationFrame(()=>{this.animate()}); this.rotationJoystick.update(); renderer.render(scene, camera); }
It would be great to have the option to have multiple joysticks. Maybe one on each half of the screen? This would make it easier to develop experiences where the...