Skip to content

Mouse picking #23

@kvark

Description

@kvark

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions