-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
Description
Three.js employs a generic raycasting model for picking:
https://threejs.org/docs/#api/core/Raycaster
We could make it work with roughly the following API:
let raycaster = three::RayCaster::from_camera(mouse_coords, &cam);
for (name, world_transform, material) in raycaster.cast(&scene) {
// do something
}Clearly, we'd want the nodes to be named for this to be convenient.
Reactions are currently unavailable