From 33f17ea7597b9892b9ada7ae100375be397ec966 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sat, 3 Oct 2020 12:21:16 -0500 Subject: [PATCH] pathshape gravity suppression injection --- Engine/source/T3D/player.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Engine/source/T3D/player.cpp b/Engine/source/T3D/player.cpp index 6bf41d011..c68824808 100644 --- a/Engine/source/T3D/player.cpp +++ b/Engine/source/T3D/player.cpp @@ -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.