Other Usefull Classes to explore

Behavior

Picking :

The API is distributed among a number of classes . . .
Enable pickability of any node via methods on Node
Initiate a pick using methods on Locale or BranchGroup
Pick methods take as an argument a PickShape
PickBounds, PickPoint, PickRay, PickSegment
Pick methods return one or more SceneGraphPaths

Create a behavior that wakes up on mouse events
On a mouse release:
Construct a PickRay from the eye passing through the 2D mouse screen point
Initiate a pick to find all pick hits along the ray, sorted from closest to furthest
Get the first pick hit in the returned data
Do something to that picked shape
(Re)declare interest in mouse events

Other Classes

Background

File

Tree ? not vital