BulletSim: remove the movement decay while flying. Made flying slow down over time.
parent
37fb691ba5
commit
a54392d7cc
|
@ -563,12 +563,6 @@ public sealed class BSCharacter : BSPhysObject
|
|||
set {
|
||||
_flying = value;
|
||||
|
||||
// Velocity movement is different when flying: flying velocity degrades over time.
|
||||
if (_flying)
|
||||
_velocityMotor.TargetValueDecayTimeScale = 1f;
|
||||
else
|
||||
_velocityMotor.TargetValueDecayTimeScale = BSMotor.Infinite;
|
||||
|
||||
// simulate flying by changing the effect of gravity
|
||||
Buoyancy = ComputeBuoyancyFromFlying(_flying);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue