mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
further validator cleanups
bump default fidelity from 0,0001 to 0.01 fix F32Range. needs to go from - to +, not smallest to largest positive value fix several misasigned validator ranges. most of which use some form of -1 default to do a Special Thing
This commit is contained in:
parent
1ebe48edbd
commit
fcd2d38deb
9 changed files with 16 additions and 16 deletions
|
|
@ -808,7 +808,7 @@ void Vehicle::updatePos(F32 dt)
|
|||
{
|
||||
F32 k = mRigid.getKineticEnergy();
|
||||
F32 G = mNetGravity* dt * TickMs / mDataBlock->integration;
|
||||
F32 Kg = mRigid.mass * G * G;
|
||||
F32 Kg = 0.5 * mRigid.mass * G * G;
|
||||
if (k < sRestTol * Kg && ++restCount > sRestCount)
|
||||
mRigid.setAtRest();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue