Game Development Community

How do I make a Hover Vehicle?

by Wulf · in Torque 3D Professional · 12/20/2009 (12:48 am) · 8 replies

I tried using the same code from TGE to make a hover vehicle, but that doesn't work. So is there a tutorial for hover vehicles or can someone show me how to do make a hover vehicle work?

When I actually run the script I do not get any errors. What occurs is some weird falling through everything. I know it isn't my model's collision it worked in the old tge and I tried the buggy as a hover vehicle even and it did the same thing.

About the author

Recent Threads


#1
12/21/2009 (3:40 am)
Bump
#3
12/21/2009 (6:12 pm)
Yeah... this is a Torque 3D specific question. There is nothing about hover vehicles related to Torque 3D. Did you even read the post or did you just read the title?
#4
12/21/2009 (6:31 pm)
wulf, the tge scripts and the t3d scripts for this vehicle type are virtually the same, the only real differences is the directory structures, when using the tge scripts for that vehicle type just make sure you update all of the paths in the scripts to match t3d's directory structure and it should work fine.

-edit-
for an example if you see this in the script "~/data/shapes/HoverCraft/hovercraft.dts"; it will not work as this data structure is not the same. if you compare for example the tge buggy script with the t3d buggy script you would see what the differences are and from there you can see how to set up any of the other vehicle types then by making similar adjustments to the tge scripts of the same vehicle type. hope that makes sense. Not many answer this type of question as it has been asked many times with every iteration of the engine. i would suggest spending some time to understand first what the stock script's are doing though before jumping in and trying to add new scripts and datablocks.
#5
12/21/2009 (8:36 pm)
Personally, I would make a wheeled vehicle with invisible wheels. An actual "hover vehicle" probably gives you very little control over the individual physical properties that control the movement. This would depend greatly on your needs, but it is critical to separate the gameplay you are trying to achieve, from the representation of that gameplay. In other words, just because you show a hovercraft, does not mean it can't be a 4-wheeler with bouncy-shocks, and tuned down friction on the wheels.
#6
12/21/2009 (11:29 pm)
Kenneth Johnston, what I did was copied it over and changed the path for shapeFile, since I didn't need debris or anything that was the only path. When I actually run the script I do not get any errors. What occurs is some weird falling through everything. I know it isn't my model's collision it worked in the old tge and I tried the buggy as a hover vehicle even and it did the same thing.

Pat Wilson, the reason I chose hover vehicle is so that I could get easier control over the vehicle, with the normal vehicles they are harder to drive and require you to be moving to turn, but I would rather be able to turn while stationary and also have the ability to move side to side. In a hover vehicle if you turn you would continue straight in the direction you turned instead of continuing to turn like a normal vehicle, which was also what I liked about them.

Thanks for the ideas though guys.
#7
12/22/2009 (2:28 pm)
so what is happening is when you add your hover vehicle to the scene it doesnt hover, but instead drops through the world like a rock? that sounds strange. I havent tried to actually add a hover vehicle to t3d yet so im not sure what your issue is...ill try and add one myself in tonight and see what happens
#8
12/28/2009 (1:24 pm)
so i tried the hover vehicle in t3d finally and I had no issues with it, perhaps you could post your scripts? Im not really sure what your issue is or why it is falling through the world....