1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

more notes

This commit is contained in:
Sander Moolin 2021-03-22 14:58:22 -04:00
parent 26e0ca6063
commit 10ea7d445d

View File

@ -39,6 +39,7 @@ export default {
}, },
setup() { setup() {
const raycaster = new Raycaster(); const raycaster = new Raycaster();
// TODO: change to 'pointer', add event listeners for mousemove and touch
const mouse = new Vector2(); const mouse = new Vector2();
return { mouse, raycaster } return { mouse, raycaster }