diff options
author | Robert Adams | 2012-03-21 07:07:44 -0700 |
---|---|---|
committer | Robert Adams | 2012-03-21 16:16:47 -0700 |
commit | 7783c93802f61d4ed9994c3f9e924066be0469be (patch) | |
tree | 7b4b508e1934f6d0c7b31c6ff50fb9457e9f7efc /OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | |
parent | BulletSim: Add AvatarRestitution parameter. Centralize computation of buoyanc... (diff) | |
download | opensim-SC-7783c93802f61d4ed9994c3f9e924066be0469be.zip opensim-SC-7783c93802f61d4ed9994c3f9e924066be0469be.tar.gz opensim-SC-7783c93802f61d4ed9994c3f9e924066be0469be.tar.bz2 opensim-SC-7783c93802f61d4ed9994c3f9e924066be0469be.tar.xz |
BulletSim: update TODO list. Rearrange code for readability. Add per object friction and restitution runtime settable parameters.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs index 1a61431..20708d9 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | |||
@@ -261,7 +261,7 @@ public class BSCharacter : PhysicsActor | |||
261 | set { | 261 | set { |
262 | _flying = value; | 262 | _flying = value; |
263 | // simulate flying by changing the effect of gravity | 263 | // simulate flying by changing the effect of gravity |
264 | this.Buoyancy(ComputeBuoyancyFromFlying(_flying)); | 264 | this.Buoyancy = ComputeBuoyancyFromFlying(_flying); |
265 | } | 265 | } |
266 | } | 266 | } |
267 | private float ComputeBuoyancyFromFlying(bool ifFlying) { | 267 | private float ComputeBuoyancyFromFlying(bool ifFlying) { |
@@ -356,7 +356,7 @@ public class BSCharacter : PhysicsActor | |||
356 | } | 356 | } |
357 | else | 357 | else |
358 | { | 358 | { |
359 | m_log.WarnFormat("{0}: Got a NaN force applied to a Character", LogHeader); | 359 | m_log.ErrorFormat("{0}: Got a NaN force applied to a Character", LogHeader); |
360 | } | 360 | } |
361 | //m_lastUpdateSent = false; | 361 | //m_lastUpdateSent = false; |
362 | } | 362 | } |