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.

Code Snippets / Simple Jumping and Gravity for newcommers. Easy to implement!

Author
Message
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 2nd Mar 2005 09:12
Just put together this gravitational pull/jumping snippet for newcommers that need some help with figuring this out. It's very very basic and is very easy to implement into any game, it also works for either matrices or objects. In a few days I should have the next version out that will include breaking objects when falling at high speeds, weight variables for each object, increasing/decreasing speed as you jump/fall and more. Well, wiithout further adue, here it is!


It's also posted in the code base along with my other two entries, Simple Box Movement V.1 and V.2. Enjoy! (Critisism welcomed, good or bad).

RUCCUS

Causin' RUCCUS whereva' I go.
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 2nd Mar 2005 10:12
Heya Ruccus me again, good work by the way just thought id check it out.
The only thing id say to improve it is that it loses a little realism as the speed of the rise and fall does change, in real jumps you decelerate as you go up until you reach the top and then accelerate on the way down. But we can wait for that !
Nice one

Login to post a reply

Server time is: 2024-11-23 14:35:19
Your offset time is: 2024-11-23 14:35:19