Beispiel #1
0
 private void ReportShapeGeom(BSPrim prim)
 {
     if (prim != null)
     {
         if (prim.PhysShape.HasPhysicalShape)
         {
             BSShape physShape = prim.PhysShape;
             string shapeType = physShape.GetType().ToString();
             switch (shapeType)
             {
                 case "OpenSim.Region.Physics.BulletSPlugin.BSShapeNative":
                     BSShapeNative nShape = physShape as BSShapeNative;
                     prim.PhysScene.DetailLog("{0}, type={1}", prim.Name, shapeType);
                     break;
                 case "OpenSim.Region.Physics.BulletSPlugin.BSShapeMesh":
                     BSShapeMesh mShape = physShape as BSShapeMesh;
                     prim.PhysScene.DetailLog("{0}, mesh, shapeInfo={1}", prim.Name, mShape.shapeInfo);
                     break;
                 case "OpenSim.Region.Physics.BulletSPlugin.BSShapeHull":
                     // BSShapeHull hShape = physShape as BSShapeHull;
                     // prim.PhysScene.DetailLog("{0}, hull, shapeInfo={1}", prim.Name, hShape.shapeInfo);
                     break;
                 case "OpenSim.Region.Physics.BulletSPlugin.BSShapeConvexHull":
                     BSShapeConvexHull chShape = physShape as BSShapeConvexHull;
                     prim.PhysScene.DetailLog("{0}, convexHull, shapeInfo={1}", prim.Name, chShape.shapeInfo);
                     break;
                 case "OpenSim.Region.Physics.BulletSPlugin.BSShapeCompound":
                     BSShapeCompound cShape = physShape as BSShapeCompound;
                     prim.PhysScene.DetailLog("{0}, type={1}", prim.Name, shapeType);
                     break;
                 default:
                     prim.PhysScene.DetailLog("{0}, type={1}", prim.Name, shapeType);
                     break;
             }
         }
     }
 }
Beispiel #2
0
#pragma warning restore 414

        public BSDynamics(BSScene myScene, BSPrim myPrim, string actorName)
            : base(myScene, myPrim, actorName)
        {
            Type = Vehicle.TYPE_NONE;
            m_haveRegisteredForSceneEvents = false;

            ControllingPrim = myPrim as BSPrimLinkable;
            if (ControllingPrim == null)
            {
                // THIS CANNOT HAPPEN!!
            }
            VDetailLog("{0},Creation", ControllingPrim.LocalID);
        }