the cube is now selected. Starting from a cube selected, a click on the plane moves the cube in the position where we have clicked. This video shows some examples:
The demo uses the unProject method as in the Picking post . You will find in the code some modification for drawing the cube in a different position on the plane.
Download the source here:
C Sources