Skip to content

Raycaster priority - PivotControls #2396

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

Open
soadzoor opened this issue Mar 31, 2025 · 0 comments
Open

Raycaster priority - PivotControls #2396

soadzoor opened this issue Mar 31, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@soadzoor
Copy link

Describe the feature you'd like:

I have an application where users can add models into the scene, and they can change the models' position / orientation with the help of PivotControls.

Whenever a model is selected, the PivotControls appear in the selected model's position.

I set depthTest={false}, so the PivotControls are always rendered on top of the other objects.

This works visually, but it doesn't affect the Raycaster, so a lot of times the actual object is being "clicked"/intersected first (because it's closer to the camera, therefore the PivotControls don't work, the user can't move the object.

How could I set up kind of a priority list to the raycaster, so whenever the "PivotControls" is being intersected, all the other objects are being ignored?

@soadzoor soadzoor added the enhancement New feature or request label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant