mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
BulletSim: remove the movement decay while flying. Made flying slow down over time.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user