Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Rqeust: 2d Game physics tutorial.

Author
Message
Dextro
21
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 1st May 2006 00:02
There used to be a webpage with a grat tut on 2d game physics, but, apparently, it's gone.
So I was thinking "Why don't you ask in the "2d all the way" forum? There's lots of kind people over there willing to help".
So, if anyone could provide me with a tut on 2d game physics (focused on platfom-kind games), I'll be very grateful.
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 1st May 2006 01:15
Chris K created some functions that allow you to easily utilize Newton Physics in a 2D environment. Here is the link:
http://forum.thegamecreators.com/?m=forum_view&t=50908&b=8


Dextro
21
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 1st May 2006 09:11 Edited at: 1st May 2006 09:14
Uhm... I read the post about this code, but I can't figure out how would I implement a jumping routine with it. The documentation is kind of... vague.
If someone could shed out some light onto this topic, I'll be most grateful.
Thanks.
Dextro
21
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 1st May 2006 19:44
basically, what i need are the basics of a sine/cosine jump, and how to calculate the jump angle, height, gravity, etc.
Hawkeye
22
Years of Service
User Offline
Joined: 19th Sep 2003
Location: SC, USA
Posted: 1st May 2006 20:36
You need teh velocity vectors... I'll write up a tutorial this afternoon for you, if I forget about it, write me a nasty email


I am but mad north north-west; when the wind is southerly I know a hawk from a handsaw - Hamlet, Hamlet
Dextro
21
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 1st May 2006 22:03
awesome, Thanks a lot.
Hawkeye
22
Years of Service
User Offline
Joined: 19th Sep 2003
Location: SC, USA
Posted: 2nd May 2006 00:14
It's 425 lines, but you can ignore most of it... I started on a 2d tutorial, but then lost all the code. Besides, I couldn't make it work, for some reason :S The concept is fairly easy to understand, hopefuly this will enlighten you Once you understand it, you shouldn't have any trouble converting it to 2d




I am but mad north north-west; when the wind is southerly I know a hawk from a handsaw - Hamlet, Hamlet

Login to post a reply

Server time is: 2026-07-04 15:04:19
Your offset time is: 2026-07-04 15:04:19