Game Development Community

FlyingVehicle Problem in HEAD

by Daniel Neilsen · in Torque Game Engine · 06/05/2002 (1:12 pm) · 4 replies

I have just downloaded the latest HEAD and I set the racing mod up to use a flying vehicle instead of a wheeled vehicle.

The model I was using was the car.dts

Works fine until you get with a particular distance of terrain and then just locks up. The distance is a large distance though....
Happens after about 10-20 seconds of loading the game.

Anyone know anything about this?

I am using the datablocks that were posted as a resource here

#1
06/06/2002 (5:44 pm)
This turned out to be a problem with some of the force definitions in Daniels's vehicle datablock. Several of the forces (including minDrag, and horizontal/vertical SurfaceForce) are diferential forces (base on velocity), having force values that equal the total mass of the vehicle is very bad, as you can easily get into a "feedback" loop which will increase your velicity to inifinity.
#2
06/06/2002 (6:08 pm)
oooh faster than the speed of light funnage ;)

Hmm the datablock I had was the one from the resources.

Is there a sample datablock that can be used as a base Tim?
#3
06/06/2002 (6:11 pm)
Just checked my email
For others out there....

Change your datablock values:

minDrag = 30;
verticalSurfaceForce = 20;

You’ll have to continue to tweak those values, but they should definitely be less than the mass of the vehicle
#4
06/06/2002 (6:13 pm)
I guess this is as good a place as any to note that maxSteeringAngle is typoed in vehicle.cc (it's currently "maxSteerinAngle", yeehaw).