# Mouse picking demo click cubes to change their colour. ```{raw} html ▶ Run in browser ``` **Tags:** `3d` Uses the engine's GPU object-picking buffer: set ``shape.pickable = True`` and override ``on_picked``. For the manual approach (casting a world-space ray with ``screen_to_ray`` and intersecting a ``CollisionWorld`` yourself) see ``raycast.py``. Usage: uv run python examples/features/3d/picking.py ## Source ```{literalinclude} ../../examples/features/3d/picking.py :language: python :linenos: ```