aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
index 0cab5d1..e816b61 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
@@ -260,11 +260,8 @@ public class BSCharacter : PhysicsActor
260 get { return _flying; } 260 get { return _flying; }
261 set { 261 set {
262 _flying = value; 262 _flying = value;
263 _scene.TaintedObject(delegate() 263 // simulate flying by changing the effect of gravity
264 { 264 this.Buoyancy(_flying ? 1f : 0f);
265 // simulate flying by changing the effect of gravity
266 BulletSimAPI.SetObjectBuoyancy(_scene.WorldID, LocalID, _flying ? 1f : 0f);
267 });
268 } 265 }
269 } 266 }
270 public override bool 267 public override bool
@@ -299,6 +296,7 @@ public class BSCharacter : PhysicsActor
299 get { return _kinematic; } 296 get { return _kinematic; }
300 set { _kinematic = value; } 297 set { _kinematic = value; }
301 } 298 }
299 // neg=fall quickly, 0=1g, 1=0g, pos=float up
302 public override float Buoyancy { 300 public override float Buoyancy {
303 get { return _buoyancy; } 301 get { return _buoyancy; }
304 set { _buoyancy = value; 302 set { _buoyancy = value;