Description This example illustrates the use of the Extension-Node MenuSensor. Moving the mouse over the Sphere and clicking with the right mouse button, a menu entry called 'Test Menu ...' can be found. This menu holds 3 color values. Selecting one will change the color of the sphere. This menu is defined in the VRML code by the following lines: DEF MS MenuSensor { As this is a VRML node, its events can be handled as common VRML events and for example be used as in this example. Another feature of this example is, that the menu will only appear, if the mouse is over the Sphere. |