# CollisionWorld Interactive sandbox for CollisionWorld + raycasting. ```{raw} html ▶ Run in browser ``` **Tags:** `3d` Spawn sphere and box bodies into a ``CollisionWorld``, watch them bounce on the ground with custom gravity, and fire camera-through-cursor rays that intersect against every body in the world. Each hit flashes its body. Controls: A / D - Orbit camera left / right W / S - Zoom in / out Q / E - Raise / lower camera 1 - Drop a sphere 2 - Drop a box LClick / 3 - Fire raycast toward mouse cursor R - Reset scene ## Source ```{literalinclude} ../../examples/features/3d/collision_world.py :language: python :linenos: ```