#VRML V1.0 ascii DEF World Separator { . . } DirectionalLight { . . } DEF Car Separator { DEF LeftFrontWheel Separator { . . } DEF RightFrontWheel Separator { . . } DEF LeftRearWheel Separator { . . } DEF RightRearWheel Separator { . . } DEF Body Separator { . . } DEF RightHeadLight Separator { . . DEF HeadLight Separator { . . } } DEF LeftHeadLight Separator { . . USE HeadLight . . # } }The right taillight is defined here. Cube is used in the construction of the taillight. We use diffuse color but make the taillights very shiny.
DEF RightTailLight Separator { Transform { translation +3.3 0.3 +0.5 } Transform { translation -0.2 0 0 rotation 0 0 1 +1.5707963 } DEF TailLight Separator { Material { diffuseColor 1.0 0.4 0.3 shininess 0.9 } Cube { width 0.3 height 0.01 depth 0.5 } } }Similarly, the left taillight is defined. However, the actual definition of the TailLight is done by aliasing the previously defined object, TailLight.
DEF LeftTailLight Separator { Transform { translation +3.3 0.3 +0.5 } Transform { translation -0.2 0 -1.0 rotation 0 0 1 +1.5707963 } USE TailLight # Material{ # diffuseColor 1.0 0.4 0.3 # shininess 0.9 # } # Cube { # width 0.3 # height 0.01 # depth 0.5 # } } } }