As the VR HEXBUG nano traverses Planet HEXBUG, it will encounter many obstacles and hazards. The VR nano will need to detect these so as not to get stuck on an obstacle or fall into a hazard.
What Obstacles and Hazards are present in Planet HEXBUG?
The main obstacles that the VR nano will encounter are rocks, plants, and fallen trees or logs. The VR nano can get stuck on these obstacles, so students must code the VR nano to avoid them.
In addition to obstacles, there is a river that presents a hazard to the VR nano - it must avoid falling into the river in order to survive. The VR nano must cross the river over a bridge as shown on the map.
Detecting Obstacles and Hazards
The VR nano uses built-in AI technology to detect obstacles. The VR nano can use AI technology to see the hazard or obstacle and then turn to avoid or go around them. See this article for more information on the AI technology built into the VR nano.
Avoiding Obstacles Example Project
Example projects such as this one can be used as a starting point for students’ code. Students can try them, then iterate on them in order to achieve their game goals. One way they might change the Avoiding Obstacles Example Project is to change parameters in their code. See this article for more information on accessing and using example projects in Planet HEXBUG.
Avoiding Obstacles Example Project
The Avoiding Obstacles Example Project will have the VR nano turn and drive towards an obstacle. Once the obstacle is within 100 millimeters (mm) from the VR nano, it will turn left until the obstacle is no longer seen, and then drive forward past the obstacle.