#VRML V2.0 utf8 NavigationInfo { type "EXAMINE" } Viewpoint { position 0 10 10 orientation 1 0 0 -.8 } EXTERNPROTO AvoidBoxChaser [ field SFVec3f position field SFVec3f goal field SFFloat speed eventIn SFVec3f set_goal field MFVec3f obstacles ] "avoidBoxChaser.wrl" EXTERNPROTO TouchFloor [ field SFVec3f scale eventOut SFVec3f hitPoint_changed ] "touchFloor.wrl" EXTERNPROTO Object [ field SFVec3f position field SFVec3f scale field SFColor color ] "object.wrl" DEF TOUCH TouchFloor { scale 5 1 5 } DEF OBSTACLE1 Object { scale 1 1 1 position -1 0 -1.8 color 1 0 0 } DEF OBSTACLE2 Object { scale 1 1 1 position 1 0 3 color 1 0 0 } DEF GOAL Object { scale .25 2 .25 position 0 0 5 color 0 1 0 } DEF CHASER AvoidBoxChaser { speed 1 position 0 0 -5 goal 0 0 5 obstacles [ -1 0 -1.8, 1 0 3 ] }
mrl