mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
code review:
1) got rid of evey class having it's own gravity 2) rigidshape inheritance simplifications 3) gravitymod from physicszones taking buoyancy into account natively (we still track raw bouyancy to cancel it out for player) 4) disableMove used throughout 5) items can now also be influenced by the appliedforce from physicszones
This commit is contained in:
parent
76c5e30869
commit
afb39d398f
13 changed files with 191 additions and 487 deletions
|
|
@ -86,6 +86,7 @@ class SFXProfile;
|
|||
|
||||
typedef void* Light;
|
||||
|
||||
const F32 gGravity = -20;
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -914,7 +915,7 @@ protected:
|
|||
F32 mWaterCoverage; ///< Percent of this object covered by water
|
||||
|
||||
Point3F mAppliedForce;
|
||||
F32 mGravityMod;
|
||||
F32 mNetGravity;
|
||||
/// @}
|
||||
|
||||
F32 mDamageFlash;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue