333

Picking Shapes
Picking Example Using the Mouse

  • Continuing...
  • On mouse drag:
  • Update ray to pass through new 2D mouse point
  • Wait for mouse drag or mouse release event
  • On mouse release:
  • Update ray to pass thorugh last 2D mouse point
  • Use Java 3D pick method to generate the first object intersected by the ray
  • Get the pick object and do something to it
  • (Re)declare interest in mouse press events