Function veloren_voxygen::session::target::targets_under_cursor
source ยท pub(super) fn targets_under_cursor(
client: &Client,
cam_pos: Vec3<f32>,
cam_dir: Vec3<f32>,
can_build: bool,
active_mine_tool: Option<ToolKind>,
viewpoint_entity: Entity,
) -> (Option<Target<Build>>, Option<Target<Collectable>>, Option<Target<Entity>>, Option<Target<Mine>>, Option<Target<Terrain>>)
Expand description
Calculate what the cursor is pointing at within the 3d scene