Fourth Task: Adding some obstacles.
Minimize all node on the side panal. Click the plus icon (default shortcut ctrl+shift+a) Add a solid node You can change the name of the solid in the dialog box below by entering a name in the def field. I.e., DEF: [Obstacle] Open the solid node. Select children then add a shape. Under the shape node firstly add a node to the the geometry (Box, Ball, Cone etc) to define the shape. The size of the shape can be adjusted using the X/Y/Z add a texture as we did with the Floor. Trying moving the object around using the arrows or shift left clicking If the object ever gets lost you can set its position in the Translation giving x/y/z coordinates 0/0/0 being right in the centre. SAVE! Pause the simulator if it is running. Move the object to centre 2 meters of the ground (0,2,0 in the translation). SAVE! Open the obstacle node up, double click on physics and add the physics node. SAVE! Push play on the simulator, did you object fall through the environment? Pause the simulator, Reset the world to it’s last save point using the rewind icon or shortcut (ctrl+shit+t by default) Open the obstacles children, and copy (ctrl + C) the shape node Select the boundingObject node and paste the shape information here (ctrl + P). It should look like the following img SAVE! Start the simulation. Your object will now hit the ground. The Shape node, sets the appearance of the object only. The bounding object node sets the physical properties of the object. If you change one, you must change the other. Spend a bit of time adding a few more objects to your environment, try different shapes and physic settings. You have freedom to design the environment as you want it. You may also want to have a look at preexisting nodes under the proto heading. Once you have finished making your world, download the pionier.wbo from canvas. Add nodes-> import -> .wbo file SAVE!!!