Thursday, September 19th

 

Simulating walking - creating a walk cycle - probably more information than you wanted about a walk cycle.

BioMotionLab

How to turn a walk into a run - changing the timing of actions - set duration

Special Notes for creating a Walk Cycle
1. Because you want a walk cycle to be an actual cycle you will need a startWalk procedure, a walk procedure and a stopWalk procedure.
2. The startWalk procedure moves the biped from the standing position to the start of the walk cycle.
3. The walk cycle then moves the biped from the start position to the passing position and then back to the start position. This is where you want to copy your code block and then just reverse the motions. This walk cycle is then repeated using a count loop to animate walking.
4. The stopWalk then returns the biped to the neutral standing position.
See slide 12 for a good starting point.

5. Remember that because this is a cycle whatever you do you must undo. If you move the hand forward you must also move the hand backward, if you don't the hand will continue to move foward in an unnatural way.

Add the following Section 2-6 Vocabulary to your Java Definitions document:

- Executes procedures simultaneously.
- Tells the computer program how to perform the procedure.
- Default control statement in Code editor that executes procedures in sequential order.

Begin Section 2: Lesson 6 - Control Statements slides.
Begin Section 2-6 Control Statements practice. Save the White Rabbit Project as 2-6 Magic Wand. Save optional 1 activity as 2-6 Walk Cycle. We will show each persons walk cycle to the entire class so get yours to look as realistic as possible. Decide if you want it to be a happy walk, a sad walk, a cool dude walk. Personalize your walk. When your walk is finished upload the video file to google classroom. Save activity 2 as 2-6 Helicopter.

Begin Section 2-6 Control Statements project. Save the file as Fish_6.

Once you have ALL animations completed you will show these to your instructor for teacher check.

 

Homework

Review vocabulary for all sections through 2.5 for quiz Friday.

 

What

Lesson 3: Using Procedures
• Toggle and describe the visual difference between the scene editor and code editor
• Correlate storyboard statements with program execution tasks
• Identify the correct procedure to move an object in a scene
• Use procedures to move objects in a scene
• Add Java programming procedures to the code editor
• Demonstrate how procedure values can be altered
• Add a control statement to the code editor
• Use random numbers to randomize motion

 

Why

Like a director, you will program objects to move and act, and make frequent changes as you go. You will need to know how to switch back and forth between the editors used to set up your scene and program your animation.

 

How

By completing the practice exercises.