Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
1ce643cbc8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;