Animated Flamingo Part 2.
This post is a follow up to part one.
Step 3. Getting the proportions right.
The main focus of this step was to give the flamingo the right proportions. The proportions are based on the measurements from image 1. The measured parts are made relative to each other. bodyHeight is the only variable that has to be filled in. The calculations of the other variables (legLength,legWidth,feetLength,neckLength etc.) are based on the bodyHeight value. All body parts (Head, Body, Segment) come together in the main class Flamingo.
Animated Flamingo Part 1.
I dedicated a self-study course to get more experience with mathematical principles, which can be pretty useful when programming. Other goals were to learn animation concepts and to get more experienced with ActionScript 3.0 and object oriented programming. My university gives study points for completing the course successfully. The assignment had two parts:
- Read the book ActionScript 3.0 Animation Making Things Move!
- Make something based on a topic from the book
Room Wall Collision
This post explains how to calculate the walls of a room in perspective. The goal is to find the location of the left and right walls and use them as borders. This creates a space in which the objects can (and can’t) be placed.