Main Menu
| Bend it like Beckham... User controlled model animation in Away3D |
| Flash Dev |
|
After successfully creating and animating a 3D character in real time in Flash using Away3D, the next logical step was adding some user interaction to a 3D model. As with all of my experiments, when tackling a new subject for the first time I usually start off fairly simply. This time I wanted to allow the user to control the movement of a 3D model using the arrow keys on their keyboards. Here is the flash SWF and a more detailed description after the jump. As always, roll-over with your mouse to activate the SWF and click on the window once to allow user interaction.
Ok, so it isn't the most exciting bit of user entertainment, but it is proof that this technique could be used for controlling more complex 3D objects. for example we could control a 3D character and depending on which key is pressed, a different action can be performed by the character. Run, jump, punch, fly or whatever, the technique is the same. And this is becase we are not controlling the model itself by pressing keys, but rather we are just telling flash and away3d which animation should be played when. |
Comments