Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 635 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Hovering #168768
11/21/07 23:49
11/21/07 23:49
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
Hello, I am trying to make a hovercar.

Any ideas? I have tried adding a central thrust upwards, but this tends to vary so much I cant seem to get a system for keeping the car on anything like a even keel while it is moving, let alone turning or bumping in to things.

Anyone tried something like this? Anyone got any methods or ideas?

Thanks,


My games - www.spyeart.com
Re: Hovering [Re: thegamedesigner] #168769
11/22/07 02:10
11/22/07 02:10
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Try applying four thrusts just like in a "real" hover car.

Put them at the four corners and see if that doesn't help.

Re: Hovering [Re: thegamedesigner] #168770
11/22/07 02:19
11/22/07 02:19
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline
Member
zwecklos  Offline
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Hi thegamedesigner,
here my very first thoughts about realizing a hovercraft with ODE physics :

First of all, code a common physic movement for a dummy-vehicle that is touching the ground. Then make this dummy invisible.
Now create your hovercraft some quants above your invisible dummy-vehicle and make its position related to the x,y and z axis of your invisble dummy.
Do this once a frame.

hovercraft.x = dummy.x;
hovercraft.y = dummy.y;
hovercraft.z = dummy.z + 300 ;
hovercraft.pan = dummy.pan;
hovercraft.tilt = dummy.tilt;
hovercraft.roll = dummy.roll;

If your hovercraft also should be a physic entity, than use something like this, also once a frame:

phent_enable(hovercraft, 0);
hovercraft.x = dummy.x;
hovercraft.y = dummy.y;
hovercraft.z = dummy.z + 300 ;
hovercraft.pan = dummy.pan;
hovercraft.tilt = dummy.tilt;
hovercraft.roll = dummy.roll;
phent_enable(hovercraft, 1);

This thing could be some kind of lagy
depends on how, and how many opponents you will implement

Just an idea, dont know if its gonna help you...

cheers

zwecklos

edit: I just got an additional idea, use little bouncing on the dummy on the ground to support a better hover-feeling.

edit2: And of couse, not to much friction for a nice glide-feeling

Last edited by zwecklos; 11/22/07 02:33.
Re: Hovering [Re: zwecklos] #168771
11/22/07 04:41
11/22/07 04:41
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
Hello!

The first thing I tried was the four downward jets, but the problem is, that does not really create a hovercar for a video game, it makes a jump jet. It was very hard to balance the moving. Although, if the math on the correct amounts and limits of force could be done, then it would be the best "smooth" feeling.

I then tried a dozen different methods. I won't bore you, none worked.

I then, having learned a dozen ways of how not to make a hovercraft, tried something stupidly simple. I grabbed some old marble code, and made the marble invisible, then stuck a puppet hovercraft on top. I am still not sure, but it does work. I want to ask people about the feel of the system, so download a published version here.

I am going to stick two blue jets, thus seeming that when the car is level, they hover the car, when the car is leaning forward, they turn/slide the car, ect. I can also have the jets vary in size based on what they are doing, so it will look like the jets flare up when they seem to be doing more. See picture.



Tell me what you think, what you would improve if the system is good enough, or post a example of another system. I would love to see other systems!

I had one that was close to flying a helecopter (felt like the blackhawk in Battlefield2), by combining the four corner jets as in fastlane69's post, and a center jet that could be increased to control lift.


Thanks for your posts.


My games - www.spyeart.com
Re: Hovering [Re: thegamedesigner] #168772
11/22/07 05:13
11/22/07 05:13
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline
Member
zwecklos  Offline
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
I like the feeling of the hovercraft, maybe a little bit to less friction/damping(too much gliding).
Also I would add a bit more bounce(phent_setelasticity) to your invisible marble for more hover-feeling when for example gliding over the ramp.

Overall I think its a very good start for a fun hover-craft gameplay. Keep us up-to-date, I want to see more of this project

cheers

zwecklos

Re: Hovering [Re: zwecklos] #168773
11/22/07 06:03
11/22/07 06:03
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
Hmm, I think your right in the too much gliding part. I am just glad your first words were not "My god, how could you think you could get away with that!??!", ect, ect.

I actually turned down the bouncing because it felt like I was riding a rubber ball (which I was). What I need is squishness, so I squash down on impact a bit lower then I would normally ride. Hmm, maybe detect hitting the ground after being airborne, and then offset .z for a bit.


My games - www.spyeart.com
Re: Hovering [Re: thegamedesigner] #168774
11/22/07 06:47
11/22/07 06:47
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
I´ve used a car physic for a hoovercraft and made the wheels invisible with low friction. Works quite good.
On slopes you´ll have to increase the friction.


no science involved
Re: Hovering [Re: fogman] #168775
11/23/07 05:38
11/23/07 05:38
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
Hello,

I have hooked up a few other things, that make the whole thing look a bit more like a hovercraft.

What do people think of the feel of the driving?

hovercraft racing


My games - www.spyeart.com
Re: Hovering [Re: thegamedesigner] #168776
11/23/07 06:01
11/23/07 06:01
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline
Member
zwecklos  Offline
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Realy cool!
I like the effect when the turbo energy is used up

But I still think there is too much gliding, makes it very hard to follow the road without falling down.
Of course its a practice thing, when the graphics and the overall look will be improved, the player will be willing to spend the time to get better with the controlls.
Untill then, I would make the controlls more easy to handle. There should be more possibilities to save a wrong turn, to keep the craft on the road.

Overall a nice update, keep it up and implement some opponents

cheerio

zwecklos

Re: Hovering [Re: zwecklos] #168777
11/25/07 02:35
11/25/07 02:35
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
Hello,

Thought I would stick one last version up here before I go and work on other parts of the game for now, there will be more to the game then the racing.
I suppose future versions will go in showcase I.

Download hovercraft racing

Thanks for your advice,


My games - www.spyeart.com

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1