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.

Author
Message
Red general
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: United Kingdom
Posted: 1st Sep 2003 12:48
dows anyone know how to get a realistic 3d jet pack movement (with gravity) that can take the player up and around, and also land on a high urface without falling through it?


I'm kinda stuck - does anyone know how?
THANKS
RED GENERAL

My computer melts regulary - perhaps it likes being fondue
Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 1st Sep 2003 14:56
Don't take this the wrong way, but basically you've just said "Can someone write most of my game engine for me?".

You need to tackle one problem at a time and ask for help. Try and do as much as you can do of one part of the problem, then ask for help when you get stuck. For example, ignore the platform bit for now, and just try and get the jetpack guy to fly around realistically. When you have problems with that, ask some fairly specific questions to help you out. People are more likely to be willing to help if they see a finite answer to your question than if they see 10 pages worth of explaning to do.

For your jet pack guy, here's an idea. Make sure that the jetpackman model is facing forwards when its tilted directly upwards, if that makes sense. So the model is rotated so that a move object command would move it directly upwards, but the model appears to be facing forwards.



I must stress, I just bashed that out now in here, and its not tested, so there's a high chance it might be buggy and might not work, but in essense, you're tilting the object with the mouse. When you press the mouse button its getting the object angle and figuring out thrust in the x,y,z axis accordingly. Its then adding this thrust to the objects speed, and taking off an amount for gravity from the objects verical speed.

Should work quite well.

Insiiiiiiiiiiiiiiiiiiiiiiiide!
Red general
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: United Kingdom
Posted: 1st Sep 2003 20:53
I'm sorry if it sounded a bit abrout but each of my attempts seems to go strangly wrong (I think that it must have been my rotations + thrust values giving me problems) but thanks for the bit of the coding as that should now solve the problem.

Thanks
RED GENERAL

My computer melts regulary - perhaps it likes being fondue
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 1st Sep 2003 21:05
FOr the landing on high surface bit your collision should help with that if you have some sort of floor collision already in just move the player up until over roof or whatever, and let gravity move him down until he hits the roof.

In terms of jet pack, have a meter of fuel left and whenever you hold down the jetpack button, move player up and decrease fuel. When fuel reaches 0, stop moving him up. When you hit the ground again refill fuel

Theres no place like 127.0.0.1
There are 10 people in this world, those who understand binary and those who don't
Bus station = where bus stops. Train station = where train stops. Workstation = ?
Simple
23
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United Kingdom
Posted: 1st Sep 2003 21:09
Well, as the 3 winners of the Retro Compo had to release the source code to their games and JetPac2003 came in 3rd ...... there should be some code for it somewhere.

If you can't find it then send me an e-mail and I'll send it to you as long as Van-B don't mind

Kensupen
23
Years of Service
User Offline
Joined: 19th Sep 2002
Location: United States
Posted: 2nd Sep 2003 07:04
I'll see if I can dig up my 3d JetPack demo and post it for ya on our site. We made a demo of JetPack physics and haven't got our site up since we just moved. I'll have my roommate post it and I'll put a link in here.

-Kensupen

Nerdsoft Creations - Lead Programmer
System Specs: AMD XP 1700+, WinXP Home, 1GB PC133 ram and Radeon 9500 using DX9
Red general
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: United Kingdom
Posted: 10th Sep 2003 16:24
Thanks for the email, but at the moment I can't find the zip on your site - could you e-mail me when it is uploaded on it.

Thanks
RED GENERAL

My computer melts regulary - perhaps it likes being fondue

Login to post a reply

Server time is: 2026-07-25 09:40:41
Your offset time is: 2026-07-25 09:40:41