aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs')
-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);