Traffic Light
A red, yellow, and green lights may be flashed.
Properties:
State
if set to 0, 1 or 2, the color of the traffic light is determined to be
red, yellow or green respectively after loading the scene in VRML browser.
Events:
IsGreen
generates TRUE when a green light is on.
setGreen
the traffic light is green if the event of the SFTime type comes.
setRed
the traffic light is red if the event of the SFTime type comes.
setYellow
the traffic light is yellow if the event of the SFTime type comes.
switchState
changes the color of the light if the event of the SFTime type comes.