mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #429 from eightyeight/air-control-limit
Air control speed limit
This commit is contained in:
commit
67a003bcad
1 changed files with 1 additions and 1 deletions
|
|
@ -2870,7 +2870,7 @@ void Player::updateMove(const Move* move)
|
||||||
if (pvl)
|
if (pvl)
|
||||||
pv *= moveSpeed / pvl;
|
pv *= moveSpeed / pvl;
|
||||||
|
|
||||||
VectorF runAcc = pv - acc;
|
VectorF runAcc = pv - (mVelocity + acc);
|
||||||
runAcc.z = 0;
|
runAcc.z = 0;
|
||||||
runAcc.x = runAcc.x * mDataBlock->airControl;
|
runAcc.x = runAcc.x * mDataBlock->airControl;
|
||||||
runAcc.y = runAcc.y * mDataBlock->airControl;
|
runAcc.y = runAcc.y * mDataBlock->airControl;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue