Box Chase Demo

#VRML V2.0 utf8

NavigationInfo { type "EXAMINE" }
Viewpoint { position 0 10 10  orientation 1 0 0 -.8 }

EXTERNPROTO BoxChaser [
	      field SFVec3f position
	      field SFVec3f goal
	      field SFFloat speed
	      eventIn SFVec3f set_goal
	     ] "boxChaser.wrl"

EXTERNPROTO TouchFloor [ field SFVec3f scale
			 field SFColor color
			 eventOut SFVec3f hitPoint_changed ] "touchFloor.wrl"

DEF TOUCH TouchFloor { scale 5 1 5 }
DEF CHASER BoxChaser { speed 2 }

ROUTE TOUCH.hitPoint_changed TO CHASER.set_goal


mrl