Skip to main content Module picking Copy item path Source CAMERA_GIZMO_PICK_RADIUS 🔒 Fixed pick radius for a camera entity’s gizmo, since it has no Renderable to size a bounding
sphere from. pick Casts a ray from the camera through the mouse’s normalized-device-coordinate position and
returns the nearest entity it intersects, if any. pick_model 🔒 Nearest ray/triangle hit (by t) across every triangle of every mesh in model, with local
mesh positions transformed into world space by matrix first. ray_sphere_intersection 🔒 ray_triangle_intersection 🔒 Möller–Trumbore ray/triangle intersection. Double-sided (doesn’t consider winding order),
since picking should hit a triangle regardless of which way it faces the camera.