Mouse Picking Tutorial

This tutorial will cover how to use the mouse cursor interactively in your panda world. It is sometimes desireable to be able to interact with objects in a 3D scene via a mouse cursor. There are many solutions to this problem and this tutorial will cover a popular method. The method used in this tutorial will use collision detection to determine which objects the mouse cursor is hovering over. By using collision rays and shooting them from the lens (camera) with respect to the current position of the mouse cursor, we can hit objects that are being covered by the cursor.

For more information on tasks, please consult the Panda3D online manual.

The image below shows the tutorial in action.