Browse Source

fix for https://github.com/GarageGames/Torque3D/issues/1262 passes along mAppliedForce found https://github.com/GarageGames/Torque3D/blob/74a05854d56afe15cbc341575b73b3474af18277/Engine/source/T3D/shapeBase.cpp#L1600 like the rest of the classes. mGravityMod left as an exercise to someoone actually working on a vehicle game at present.

Azaezel 10 years ago
parent
commit
1ce643cbc8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/T3D/vehicles/wheeledVehicle.cpp

+ 3 - 0
Engine/source/T3D/vehicles/wheeledVehicle.cpp

@@ -1086,6 +1086,9 @@ void WheeledVehicle::updateForces(F32 dt)
    if (mJetting)
       mRigid.force += by * mDataBlock->jetForce;
 
+   // Add in force from physical zones...
+   mRigid.force += mAppliedForce;
+
    // Container drag & buoyancy
    mRigid.force  += Point3F(0, 0, -mBuoyancy * sWheeledVehicleGravity * mRigid.mass);
    mRigid.force  -= mRigid.linVelocity * mDrag;