Author Topic: Slowing the wheels  (Read 480 times)

Code: [Select]
// Siege_tire.cs

datablock WheeledVehicleTire(SiegeTire)
{
   // 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 = "./Siegetire.dts";

mass = 15;
    radius = 1;
    staticFriction = 5;
   kineticFriction = 3;
   restitution = 0.5;

   // Spring that generates lateral tire forces
   lateralForce = 3000;
   lateralDamping = 1000;
   lateralRelaxation = 0.01;

   // Spring that generates longitudinal tire forces
   longitudinalForce = 3000;
   longitudinalDamping = 1000;
   longitudinalRelaxation = 0.01;
};
Right now it is going a medium speed and the wheels are spinning super fast. How do I make it go slower and make the wheels spin slower?

*eat's heedicalking*

Oh my god, is there NO ONE out there who can make a wheeled vehicle?

*eat's heedicalking*

Oh my god, is there NO ONE out there who can make a wheeled vehicle?
shut up.


Just ramp up the values to find the changes. If you find nothing that changes the wheel speed, it might be a different variable.

On the vehicle script itself,
Code: [Select]
datablock WheeledVehicleData(SeigeThingo)
{
maxWheelSpeed = 10;        // Engine scale by current speed / max speed
};