PDA

View Full Version : basic 2d game math


svero
11-09-2006, 01:41 AM
I'm working with a programmer who has less experience than I do and sometimes he gets lost with simple 2d math things like using quadratic functions to smooth motion, or using a cos() function to create a wobble and so on. Does anyone know of any online game math tutorials that go over the very basic stuff like using trig in games without going into all the complicated stuff like rigid body dynamics etc.. that I could point him to for a review?

- Steve

Bad Sector
11-09-2006, 01:49 AM
There is an early gamasutra article on that stuff. "Early" here means that is down the bottom in the "programming" feature list.

svero
11-09-2006, 01:57 AM
Not so good. Talks about quaternions and stuff... no diagrams nothin. Definitely looking for something friendlier and more common sensical everyday use than that.

Musenik
11-09-2006, 02:12 AM
I just typed 'quadratic equations' into google and found some very nice online guides.

jankoM
11-09-2006, 02:17 AM
I just asked similar question yesterday, but for me on slogamedev and someone gave me these links..

http://ocw.mit.edu/OcwWeb/Global/OCWHelp/avocw.htm

http://www.lib.berkeley.edu/MRC/berkeleyvideos.html#events
I just quickly checked the links but the firs one seems really nice, videos and interactive applets

svero
11-09-2006, 02:44 AM
Well MIT open courseware is amazing but way way way more tehcnical than I was looking for. I was really looking for something for a total beginner with solid useful game examples etc... Maybe I should write that article and post it somewhere.

Ricardo C
11-09-2006, 02:53 AM
Seth Robinson's Code Dojo (codedojo.com/learning_math.htm) has links to some great tutorials for "game math".

jankoM
11-09-2006, 02:57 AM
I don't know the english phrases... but after I reread them.. Are you asking for someone to understand x = 2 y*y or y = 5 * cos(2 * x) for example? this is primary school math so you should search probably uder that...

this is nice for sin, cos
http://www.edumedia.fr/m165_l2-equations-and-functions.html

maybe here
http://www.homeschoolmath.net/

Moose2000
11-09-2006, 03:03 AM
There's a nice applet at http://www.gizma.com/easing/ for visualising easing equations.

Emmanuel
11-09-2006, 03:11 AM
svero, if you want to write that article, there's probably not much to it:

- 2D coordinates
Cartesian and polar coordinates (polar coordinates easily solve a lot of
problems that would be very annoying with cartesian ones)

- 2D trigonometry
Cosinuses, sinuses and tangents

- 2D movement
Velocity and acceleration
Splines (definition, conversion to 2D coordinates, arc lengths)

- Collisions
Rectangle, circle and triangle collisions (triangles can do arbitrary quad
collisions).

I think that's about the extent of the 2D/math library in Atlantis Sky Patrol..

Best regards,
Emmanuel

svero
11-09-2006, 04:03 AM
The easing equations one is pretty nice.

oldschool
11-09-2006, 10:14 AM
these in specific with applets and stuff.
http://www.geocities.com/SiliconValley/Campus/9449/physics.htm
http://www.walter-fendt.de/ph14e/index.html
http://www.physicsclassroom.com/
http://www.univie.ac.at/future.media/moe/galerie.html


and these maybe:
http://www.clarku.edu/~djoyce/trig/
http://www.kirupa.com/developer/actionscript/trigonometry.htm
http://www.cs.ubc.ca/~van/sssjava/javademo.html
http://www.moshplant.com/direct-or/bezier/math.html
http://www.purplemath.com/modules/index.htm


if you don't mind me asking are your just mentoring or training an employee?
just curious:)