2D Game Physics 101

Member
Posts: 257
Joined: 2004.06
Post: #1
I came across this bit of Flash work that's a tutorial on 2D game physics:

http://www.rit.edu/~ndr0470/game_physics/

The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Moderator
Posts: 613
Joined: 2004.09
Post: #2
Wow thats a great reference, thanks for the find =D

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Member
Posts: 196
Joined: 2003.10
Post: #3
Very nice. Very understandable. Even better is the one referenced by it:

http://www.geocities.com/SiliconValley/C...hysics.htm
Moderator
Posts: 3,567
Joined: 2003.06
Post: #4
Me three, totally cool link. Thanks for posting it!
Moderator
Posts: 768
Joined: 2003.04
Post: #5
Gravity:
Quote: "Watch how the gravity value decrements the y velocity of the apples"
Very odd choice...

Walking & Jumping: The code has a "x_velocity" (a misleading variable name...) of 10, but for some reason the demo has a "speed" input box, and the left & right motion not only doesn't match that value, it's different for each direction (?)

I wouldn't call this a good tutorial...

Edit: I would recommend reading the tutorial linked at the end first, especially the terms' definitions.

Possibly Related Threads...
 Thread: Author Replies: Views: Last Post Physics in a Game World mikey 5 4,181 Sep 20, 2009 08:58 AM Last Post: mikey Bullet Physics Library / COLLADA physics viewer erwincoumans 14 11,948 Aug 12, 2006 12:59 AM Last Post: Fenris Good Game Loop with Physics Units blobbo 6 4,371 Oct 14, 2005 02:59 AM Last Post: unknown Free sample chapter from Physics for Game Programmers Leisure Suit Lurie 9 5,647 Jul 25, 2005 05:14 PM Last Post: codemattic Simple Physics Game Zenith 8 5,221 Jan 13, 2004 10:01 PM Last Post: Josh