Project GUTS Coding Challenges Week 5- Math Theme: Z coordinate (Altitude & 3-D view) Names: ___________________________________ Spaceland is tilted on its side. Use the ‘alt’ key and the mouse to get a 3D view. You can also use an invisible agent with ‘take camera’ to have the Spaceland set up in this view. # 33 34 35 36 37 38 Description Make one agent at a higher altitude than the terrain, use the ‘Alt’ key and move your mouse to see the 3-D view. Make 20 agents scattered at the same altitude above the terrain. Create 20 agents scattered at various altitudes above the terrain. Make a 2nd breed with a single agent, make it an invisible agent & take the camera (try setting your invisible agent in different locations to find the best view) Create 20 agents scattered at various altitudes above the terrain. Have them move around and ‘float’ in the water like plankton (move forward and slightly up & down) Scatter 20 agents at the same altitude above the terrain, have them fall to Spaceland like rain and stop when they hit the terrain. extra challenge: when the agents hit the terrain, it looks like snow on the ground. Create 200 turtles at random x, y, and z coordinates. Have them wiggle around the world and wiggle up and down. Have the turtles change color if they collide with another turtle. Hints Work only in the World page, and only a Setup push button is needed, use a trait block to set the altitude. Work only in the World page, and only a Setup push button is needed, use a trait block to set the altitude. Work only in the World page, and only a Setup push button is needed, use a trait block to set the altitude, use a random block to have various altitudes. To make an invisible agent, set its size to zero, use the block ‘take camera’ to see Spaceland from its view. Once the 20 agents are scattered, work in the Turtle page with a ‘forever’ block. In the movement drawer, find the ‘up’ and ‘down’ blocks, use random blocks to make each agent move at different rates. (sort of like a vertical wiggle) To have them fall, use a ‘down’ block and to stop they can be deleted using a logic block ‘if’ to create an equation with their Z (if their Z is less than or equal to, then delete) Think of the epidemic model and explore whether the ‘collision’ block works in 3D. Verification Signature