## 2D Physics Tutorial

Score:
rated 4.27 / 5 stars
Views:
93,047 Views
Genre:
Tutorial
Tags:
flash
gravity
actionscript
physics

## Credits & Info

Jul 14, 2008 | 12:34 PM EDT

#### If you liked this, check these out!

I've been writing the content of this tutorial for a couple of weeks now, and I thought I'd submit a relatively brief tutorial on the main components of what I've made so far. I hope you enjoy it, and I hope you can follow all of it. Please leave any critisisms you may have, it's all appreciated. Thanks
Oh and I'm also currently working on more content to put into a second tutorial as a sequel to this one. Leave any ideas you have or anything you want to be put in and I'll work on putting it all in!

## Reviews

#### stylusOsubstance

##### Rated 5 / 5 stars2008-07-16 22:09:43

Excellent!

Well Done! Exactly the kind of tutorial needed in and worthy of the flash tutorial collection. Would love to see more like this. This flash covers a very good ball bouncing behavior, collision detection, interacting with the ground, and more. The math is fairly advanced and complicated but it is explained thoroughly and can be understood with a little effort from those challenged by math; it's deals with trigonometric functions and differential equations and it explains and makes allowances for some of flash's limitations in dealing with math expressions. Very Good and I would love to see more like this!

#### kaboogi

##### Rated 4.5 / 5 stars2008-07-16 13:20:59

THANKS!

I am a rookie, i followed ur instructions and i got it!!!
now i have a basketball game! lol

#### Anti-U

##### Rated 3 / 5 stars2008-07-16 08:22:03

GAHH!!

i cant take it. there variables, and brackets, and.. OOH THE HORROR!!!

i just skipped it all, i couldnt possible take reading all that math.
the parts i did stick on(the demonstration slides), i found 1 problem, and one.. annoyance: problem; the one where you added the ground. if i moved the mouse fast enough i could get the ball INSIDE the wall, as though it were outside.
annoyance; the ball would only drop, i couldn't ''throw'' it. though im sure that was part of the programing that the ball would only be forced upon by gravity, nothing external except me positioning it.

anyways. looks like you put quite some work into it, so good job :)

#### CaptinChu

##### Rated 4.5 / 5 stars2008-07-15 12:59:35

Just what I needed!

I've been working on a 3D game recently, and I didn't quite know how to handle collisions. But after seeing that margin system that you used, I think that I'll do just fine!