We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Raw ray-casting that tells which components collided with the ray.
Support both Rapier and Three.js ray-casting ?
https://rapier.rs/docs/user_guides/javascript/scene_queries/#ray-casting https://threejs.org/docs/#api/en/core/Raycaster https://threejs.org/manual/#en/picking
We should be able to add events on components directly as below :
const cube = new FCube() cube.onClick(() => { ... })
This will probably require to cast rays on user click, so it should be explicitly activated (off by default) with something like :
new FScene({ autoRayCasting: true })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ray-casting
Raw ray-casting that tells which components collided with the ray.
Support both Rapier and Three.js ray-casting ?
https://rapier.rs/docs/user_guides/javascript/scene_queries/#ray-casting
https://threejs.org/docs/#api/en/core/Raycaster
https://threejs.org/manual/#en/picking
Add event handlers on components
We should be able to add events on components directly as below :
This will probably require to cast rays on user click, so it should be explicitly activated (off by default) with something like :
The text was updated successfully, but these errors were encountered: