mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
pathshape gravity suppression injection
This commit is contained in:
parent
681dbe108c
commit
33f17ea759
1 changed files with 2 additions and 0 deletions
|
|
@ -2889,6 +2889,8 @@ void Player::updateMove(const Move* move)
|
||||||
moveSpeed *= speed_bias;
|
moveSpeed *= speed_bias;
|
||||||
// Acceleration due to gravity
|
// Acceleration due to gravity
|
||||||
VectorF acc(0.0f, 0.0f, mNetGravity/(1.0 - mBuoyancy) * TickSec);
|
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
|
// Determine ground contact normal. Only look for contacts if
|
||||||
// we can move and aren't mounted.
|
// we can move and aren't mounted.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue