-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PointerControls #30502
base: dev
Are you sure you want to change the base?
Add PointerControls #30502
Conversation
hovered : null, | ||
selected : null, | ||
intersections : [] | ||
} |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
orbit.update(); | ||
orbit.addEventListener( 'change', render ); | ||
// world | ||
const objects = [] |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
pointer.addEventListener("hoveron", e=> { | ||
e.object.matrixAutoUpdate = true; | ||
transform.attach(e.object); | ||
}) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
It seems the demo is broken since it is not possible to transform objects via |
It seems you have extracted the selection logic from I'm not sure it's a good idea to call the module E.g. the I have the feeling it's better to put this into a third-party repo first and only add it into the core if we see it is commonly used. |
I’m currently working on Ziko-gl, an addon for Ziko.js built on top of Three.js, and I’ve added PointerControls to it. Now, I’m considering integrating it into the core library.
PointerControls is used to enable interaction with 3D objects in the scene by detecting pointer events such as hoveron, hoveroff, click, and pointerup. These events allow you to interact with objects by hovering over them, clicking on them, or releasing the pointer