Entity Picking
Compare collision picking and framebuffer picking to select 3D entities when the user clicks the scene.
Compare collision picking and framebuffer picking to select 3D entities when the user clicks the scene.
Cast physics raycasts from the pointer to hit colliders and select entities under the cursor in 3D.
Pick meshes using math ray tests instead of the physics engine to avoid extra runtime weight in published builds.
Place clickable hotspots in the 3D view that open info panels using raycasts and screen overlays.
Filter physics raycast hits by entity tags so picking ignores the wrong colliders and only selects intended objects.
Move a character or object toward clicked ground positions using screen-to-world raycasts for simple navigation.
Convert pointer coordinates into per-camera rays when using split viewports so picking hits the correct 3D region in each pane.
Cast a physics ray from the camera through the pointer to detect which entity or shape sits under the cursor.
Drive a wheeled vehicle with Ammo raycast wheels, suspension, and steering that works on desktop, mobile, and WebXR.
Cast rays into real-world geometry with the WebXR hit-test API to anchor virtual objects on detected floors and tables.