mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-06 04:51:01 +00:00
fix for https://github.com/GarageGames/Torque3D/issues/1262 passes along mAppliedForce found 74a05854d5/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.
This commit is contained in:
parent
8f94614a6e
commit
1ce643cbc8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue