Game Development Community

How to make a vehicle swim?

by AIDan · in Torque Game Engine · 02/21/2002 (8:52 am) · 6 replies

It seems like the density property was removed from the vehicles.

Is that right or am I missing something?

greetings
Daniel

#1
02/21/2002 (9:09 am)
Was it ever in there? It wouldn't be too hard to put something in.
#2
02/21/2002 (11:06 am)
I checked the T2 scripts for it before I asked.
datablock WheeledVehicleData(MobileBaseVehicle) : MPBDamageProfile
{

   drag = 0.0;
   density = 20.0;

};

greetings
Daniel
#3
02/21/2002 (11:57 am)
I just looked into this, obviously it still works, I'm still laughing.

density is defined in shapebase and works with vehicles

Try this in your vehicle datablock and you'll see what I mean(very exaggerated but shows it works).

density = 0.0001;

Then go into water.

hope that helps.

Bruce
#4
02/21/2002 (1:13 pm)
Did you try it with the Racing Demo??
It is not working for me. With the player it works.
#5
02/21/2002 (1:28 pm)
Yes I tried it with the latest head version running the racing mod.
#6
02/23/2002 (3:43 am)
Now I got it work.

It seems like when your vehicle hits the ground, it stays there.

So when you spawn your vehicle over the water and it hits the ground, because it impacts too hard, it stays on the ground.
If it does not hit the ground, it makes it way back to the surface.

greetings
Daniel