mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #429 from eightyeight/air-control-limit
Air control speed limit
This commit is contained in:
commit
67a003bcad
|
|
@ -2870,7 +2870,7 @@ void Player::updateMove(const Move* move)
|
|||
if (pvl)
|
||||
pv *= moveSpeed / pvl;
|
||||
|
||||
VectorF runAcc = pv - acc;
|
||||
VectorF runAcc = pv - (mVelocity + acc);
|
||||
runAcc.z = 0;
|
||||
runAcc.x = runAcc.x * mDataBlock->airControl;
|
||||
runAcc.y = runAcc.y * mDataBlock->airControl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue