Author Topic: Anti-Drifting and Anti-Spring for vehicle  (Read 1370 times)

I know how edit vehicle script. How I can change spring to anti-Spring?

TMStadium Tire-
Code: [Select]
datablock WheeledVehicleTire(TMStadiumTire)
{
   // Tires act as springs and generate lateral and longitudinal
   // forces to move the vehicle. These distortion/spring forces
   // are what convert wheel angular velocity into forces that
   // act on the rigid body.
   shapeFile = "./TMStadiumWheel.dts";

mass = 10;
    radius = 1;
    staticFriction = 5;
   kineticFriction = 5;
   restitution = 0.5;

   // Spring that generates lateral tire forces
   lateralForce = 18000;
   lateralDamping = 4000;
   lateralRelaxation = 0.01;

   // Spring that generates longitudinal tire forces
   longitudinalForce = 14000;
   longitudinalDamping = 2000;
   longitudinalRelaxation = 0.01;
};

I have addded Spring change to anti-Spring.
TMStadium AntiSpring-
Code: [Select]
datablock WheeledVehicleSpring(TMStadiumSpring)
{
// Wheel suspension properties
length = 0.3;                // Suspension travel
force = 3500;              // Spring force
damping = 800;             // Spring damping
antiSwayForce = 6;        // Lateral anti-sway force
};
It don't work. It keep drifting ( spin) too much and too bounce much!
reason I add max speed is 200 like this
Code: [Select]
maxWheelSpeed = 200;I really want the vehicle really faster (zoom) Pro Race car (F1) with anti spring and anti drifing too.
If someone help me explain to change it. Once this finish and locking.

Code: [Select]
maxWheelSpeed = 200;I really want the vehicle really faster (zoom) Pro Race car (F1) with anti spring and anti drifing too.
If someone help me explain to change it. Once this finish and locking.

Just experiment with raising the number?

Just experiment with raising the number?
I did. It went pretty fastest. but 2 thing probelm are drifing and bounce too much. I cannot stand these. I like speed really good.

I did. It went pretty fastest. but 2 thing probelm are drifing and bounce too much. I cannot stand these. I like speed really good.
make the spring more soft



You must use a pring lol
Code: [Select]
antiSwayForce = 6;        // Lateral anti-sway forceI got it from Hoverboard script.