hitnormal.x3d

X_ITE X3D Player   Test hitNormal field. A TouchSensor is associated with a white Box geometry. A SpotLight is inside the Box geometry. Four red Spheres are above, below, to the left and right of the Box. The hitNormal_changed event from the TouchSensor is routed to the direction field of the SpotLight. The result is, when the pointing device is over the top, bottom, left or right face of the Box, the direction of that faces normal is routed to the SpotLight (turning the light). When the top face is indicated, the top Sphere should be illuminated. When the bottom face is indicated, the bottom Sphere should be illuminated. The same is true for the right and left faces.

Display error: X3D model not shown.

Your HTML browser does not appear to support all features required by the X_ITE X3D player!

Original X3D scene: hitnormal.x3d

X_ITE Console