aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
diff options
context:
space:
mode:
authorRobert Adams2012-09-06 08:05:53 -0700
committerRobert Adams2012-09-07 16:05:22 -0700
commit3c097cb7a9634f711fffb56c0a6912487694aa53 (patch)
treefc18a6ca04d1e9e751c9a425ff0b3adc84e4d941 /OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
parentBulletSim: PhysicsActorType() now returns the correct value rather than 'unkn... (diff)
downloadopensim-SC_OLD-3c097cb7a9634f711fffb56c0a6912487694aa53.zip
opensim-SC_OLD-3c097cb7a9634f711fffb56c0a6912487694aa53.tar.gz
opensim-SC_OLD-3c097cb7a9634f711fffb56c0a6912487694aa53.tar.bz2
opensim-SC_OLD-3c097cb7a9634f711fffb56c0a6912487694aa53.tar.xz
BulletSim: Add some comments (gasp) and log messages.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
index de182f8..01f231b 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
@@ -472,6 +472,10 @@ public sealed class BSPrim : BSPhysObject
472 472
473 // Make gravity work if the object is physical and not selected 473 // Make gravity work if the object is physical and not selected
474 // No locking here because only called when it is safe 474 // No locking here because only called when it is safe
475 // There are three flags we're interested in:
476 // IsStatic: Object does not move, otherwise the object has mass and moves
477 // isSolid: other objects bounce off of this object
478 // collisionEvents: whether this object returns collision events
475 private void SetObjectDynamic() 479 private void SetObjectDynamic()
476 { 480 {
477 // If it's becoming dynamic, it will need hullness 481 // If it's becoming dynamic, it will need hullness
@@ -481,6 +485,7 @@ public sealed class BSPrim : BSPhysObject
481 float mass = IsStatic ? 0f : _mass; 485 float mass = IsStatic ? 0f : _mass;
482 486
483 BulletSimAPI.SetObjectProperties(_scene.WorldID, LocalID, IsStatic, IsSolid, SubscribedEvents(), mass); 487 BulletSimAPI.SetObjectProperties(_scene.WorldID, LocalID, IsStatic, IsSolid, SubscribedEvents(), mass);
488 m_currentCollisionFlags = BulletSimAPI.GetCollisionFlags2(Body.Ptr);
484 489
485 // recompute any linkset parameters 490 // recompute any linkset parameters
486 Linkset.Refresh(this); 491 Linkset.Refresh(this);