2. Hand Ball
Create a world with a right hand (People) holding a toy ball (Sports). Have the fingers close to grasp the ball. Then, throw the ball into the air while opening the fingers of the hand. Finally, make the hand catch the ball as the hand recloses its fingers.
Hint: Tips & Techniques 2 tells how to use the vehicle property to make the ball move as the hand moves.
4. Robot Preparing for Competition
In this project, your goal is to create a motion controller for a robot (Ranger from Scifi). You will create specific methods that allow the robot to perform warm-up actions for its upcoming competition.
Create the following methods to help the robot warm up for it’s competition:
armSwing: the robot swings it’s arms back and forth across the front of it’s body
headShake: the robot’s visor flips back so it’s head is showing. Then it rocks it’s
head right, left, back, forth. Then rotates its head left and right.
jumpUpAndDown: the robot jumps up and down
Your own method: Think of one other action for the robot and make a method for it.
Create the following keyboard controls:
When the “A” key is pressed, the robot swings its arms.
When the “H” key is pressed, the robot shakes its head.
When the “J” key is pressed, the robot jumps up and down.
1. Drinking Parrot
A small toy popular with children is a drinking parrot. The parrot is positioned in front of a container of water and its body given a push. Because of the counterbalance of weights on either end of its body, the parrot repeatedly lowers its head into the water.
Create a simulation of the drinking parrot (Objects). Use an infinite Loop statement to make the parrot drink.
Hint: We used the blender object (Kitchen gallery), pushed the base into the ground, deleted the lid, and changed the color of the blender to blue to simulate a bucket of water.
3. Horse through a Hoop
The horse is in training for a circus act, in which the horse must jump through a large hoop (we used the torus from the Shapes folder). Create a world, as shown below, with a horse facing the hoop. Write a program to use a loop to have the horse trot forward several times and then jump through the hoop. When the horse gets close enough to the hoop to jump through it, have the horse jump through and then the world ends.
Your project must include a trot method that makes the horse perform a trot motion forward. A horse trots by turning the legs at the same time as the body moves forward. The leg motions can bend at the knee for a more realistic simulation, if desired. The loop calls the trot method.