aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs
diff options
context:
space:
mode:
authorRobert Adams2012-10-19 10:48:45 -0700
committerRobert Adams2012-10-19 10:52:31 -0700
commitf422b9b388fe67c61e610c79efabd5e07512884b (patch)
tree7ad1c226e8541742164e83cf18e8baf595061367 /OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs
parentBulletSim: change nonimal physics frame rate to 55 to give same numbers as ODE. (diff)
downloadopensim-SC_OLD-f422b9b388fe67c61e610c79efabd5e07512884b.zip
opensim-SC_OLD-f422b9b388fe67c61e610c79efabd5e07512884b.tar.gz
opensim-SC_OLD-f422b9b388fe67c61e610c79efabd5e07512884b.tar.bz2
opensim-SC_OLD-f422b9b388fe67c61e610c79efabd5e07512884b.tar.xz
BulletSim: reorder avatar collision checking to eliminate double collision_end.
Various tweekings to avatar shape/mass/inertia/etc. Remove change from avatar radius to diameter. But still the avatar sinks. Collision_end now happens immediately rather than at the next subscription time.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs b/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs
index 3d15eaa..861ffe7 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSShapeCollection.cs
@@ -417,10 +417,9 @@ public class BSShapeCollection : IDisposable
417 417
418 if (shapeType == ShapeData.PhysicsShapeType.SHAPE_AVATAR) 418 if (shapeType == ShapeData.PhysicsShapeType.SHAPE_AVATAR)
419 { 419 {
420 // The radius is scaled by 1/2 because we scale by the diameter.
421 newShape = new BulletShape( 420 newShape = new BulletShape(
422 BulletSimAPI.BuildCapsuleShape2(PhysicsScene.World.ptr, 0.5f, 1.0f, shapeData.Scale), 421 BulletSimAPI.BuildCapsuleShape2(PhysicsScene.World.ptr, 1.0f, 1.0f, shapeData.Scale),
423 shapeType); 422 shapeType);
424 newShape.shapeKey = (System.UInt64)shapeKey; 423 newShape.shapeKey = (System.UInt64)shapeKey;
425 newShape.isNativeShape = true; 424 newShape.isNativeShape = true;
426 } 425 }
@@ -432,7 +431,8 @@ public class BSShapeCollection : IDisposable
432 } 431 }
433 432
434 // Don't need to do a 'ReferenceShape()' here because native shapes are not shared. 433 // Don't need to do a 'ReferenceShape()' here because native shapes are not shared.
435 // DetailLog("{0},BSShapeCollection.AddNativeShapeToPrim,create,newshape={1}", shapeData.ID, newShape); 434 DetailLog("{0},BSShapeCollection.AddNativeShapeToPrim,create,newshape={1},scale={2}",
435 shapeData.ID, newShape, shapeData.Scale);
436 436
437 prim.BSShape = newShape; 437 prim.BSShape = newShape;
438 return true; 438 return true;