mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fixed air acceleration going wild.
This commit is contained in:
parent
95ef5ec226
commit
284d96e510
|
|
@ -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