BulletSim: Fix jumping while running. Was unintentional taking way all upward target motion for avatar when running.

Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
0.8.0.3
Vegaslon 2014-03-22 15:03:13 -04:00 committed by Michael Cerquoni
parent ebe7726cd7
commit d4dad75a3c
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ public sealed class BSCharacter : BSPhysObject
m_targetVelocity = value; m_targetVelocity = value;
OMV.Vector3 targetVel = value; OMV.Vector3 targetVel = value;
if (_setAlwaysRun && !_flying) if (_setAlwaysRun && !_flying)
targetVel *= new OMV.Vector3(BSParam.AvatarAlwaysRunFactor, BSParam.AvatarAlwaysRunFactor, 0f); targetVel *= new OMV.Vector3(BSParam.AvatarAlwaysRunFactor, BSParam.AvatarAlwaysRunFactor, 1f);
if (m_moveActor != null) if (m_moveActor != null)
m_moveActor.SetVelocityAndTarget(RawVelocity, targetVel, false /* inTaintTime */); m_moveActor.SetVelocityAndTarget(RawVelocity, targetVel, false /* inTaintTime */);