aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
diff options
context:
space:
mode:
authorRobert Adams2012-03-16 17:13:06 -0700
committerRobert Adams2012-03-21 16:16:45 -0700
commit6c55fd93a300cd077bd04c1b8c3bedc7a03074e7 (patch)
tree49eaf5dc14b2bc9072e3bf7a955beee160d91448 /OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
parentBulletSim: add some new runtime setable parameters to match the dll. (diff)
downloadopensim-SC_OLD-6c55fd93a300cd077bd04c1b8c3bedc7a03074e7.zip
opensim-SC_OLD-6c55fd93a300cd077bd04c1b8c3bedc7a03074e7.tar.gz
opensim-SC_OLD-6c55fd93a300cd077bd04c1b8c3bedc7a03074e7.tar.bz2
opensim-SC_OLD-6c55fd93a300cd077bd04c1b8c3bedc7a03074e7.tar.xz
BulletSim: set buoyancy in only one place
Diffstat (limited to '')
-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;