Game Development Community

Hover vehicle

by Mario N. Bonassin · in Torque Game Engine · 07/05/2005 (6:33 pm) · 6 replies

Is the hover vehicle code busted? Ive tried everything to get just a basic vehicle to work, I've done searches and nothing has helped me. So I'm wondering if there is problem with base code itself. or I could just be wrong.

#1
07/05/2005 (6:52 pm)
Their are multiple projects that people are doing that use the hover vehicle.

How did you get "a basic vehicle" to work? Meaning, what did you do?
Did you start with the starter.racing example? did you use any of the examples?

Did you remember to delete all of the .dso files?
#2
07/06/2005 (6:46 am)
Hover vehicles are extremely dependent on their datablocks. A bad datablock will give you HVs that won't show up, crash the engine, stay put our be impossible to manuever.

Take a look at This Resource I beleive there is a HV datablock there.

HTH
#3
07/06/2005 (7:01 am)
You'll also have to play with the mass variable and experiment with scaling.

You will want to lessen your mass if you want to hover at higher than ground level.

As for scaling, iirc the hover height is calculated from the origin of the mesh, therefore, a larger (tall) model will result in a vehicle that sits on the ground and won't go anywhere.

It can be a difficult class to work with, but when you get it working properly it kicks much bootay.
#4
07/06/2005 (4:47 pm)
Ok I got a hover vehicle in the racing game but the 3rd person camera is messed up. Its way up in the air and half a mile away. What should I look at to figure this one out.
#5
07/23/2006 (1:32 pm)
Those hover datablocks only covers the unique variables of this kind of vechile, excepting the others herited from VehicleData. Just put the 3rd cam variables anywhere in the HoverVehicle datablock definition to make it work, just like this:

// 3rd person camera settings
   cameraRoll = true;         // Roll the camera with the vehicle
   cameraMaxDist = 6;         // Far distance from vehicle
   cameraOffset = 1.5;        // Vertical offset from camera mount point
   cameraLag = 0.1;           // Velocity lag of camera
   cameraDecay = 0.75;        // Decay per sec. rate of velocity lag

Put this on the code, and that's it.

And now, that's my question about hover vehicles: does anyone knows how to make it float over water? This crude datablocks doesn't have any variable to work with.
#6
07/23/2006 (4:56 pm)
I don't much like the hover vehicle code as far as how the vehicle operates. A while ago I built on the hover vehicle and pulled the wheeled vehicle spring code out and put the hover on four springs. That was a lot more fun to drive and did not seem so touchy. If you are up for it changing the vehicle code can be very rewarding.