Friday, February 01, 2008

CS3/AS3 PROJECTILE PROBLEMS

I’m having major issues programming the main action of my avatar, throwing items (bread…etc) into the pond. I’ve been doing some research into how I can go about this in CS3, as far as I can understand it involves this AS3 code – angle=Math.asin(g*d/ (v*v) / 2 – this code is based around a trigonometry equation which can be explained… here.

I’ve managed to get a simplified example of what I’m trying to accomplish using good old CS2, click the image below to try it out. This isn’t exactly what I’m intending to do though, I’d like to achieve a realistic looking gravity effect on the final version.

No comments: