Cone Chaser Demo

#VRML V2.0 utf8

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

EXTERNPROTO ConeChaser [
	      field SFVec3f position
	      field SFVec3f goal
	      field SFVec3f direction
	      field SFFloat speed
	      field SFFloat turnLimit
	      eventIn SFVec3f set_goal
	     ] "coneChaser.wrl"

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

DEF TOUCH TouchFloor { scale 5 1 5  color .2 .2 .2 }
DEF CHASER ConeChaser { speed 3  turnLimit 1.5 }

ROUTE TOUCH.hitPoint_changed TO CHASER.set_goal


mrl