Merge pull request #345 from Azaezel/alpha40_pathshapeMountfix

pathshape gravity suppression injection
This commit is contained in:
Brian Roberts 2020-10-03 12:21:37 -05:00 committed by GitHub
commit 6a2bfc221f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2889,6 +2889,8 @@ void Player::updateMove(const Move* move)
moveSpeed *= speed_bias;
// Acceleration due to gravity
VectorF acc(0.0f, 0.0f, mNetGravity/(1.0 - mBuoyancy) * TickSec);
if (getParent() !=NULL)
acc = VectorF::Zero;
// Determine ground contact normal. Only look for contacts if
// we can move and aren't mounted.