Example #1
0
        public IStaticPlaneShapeImp AddStaticPlaneShape(float3 planeNormal, float planeConstant)
        {
            var btPlaneNormal      = Translater.Float3ToBtVector3(planeNormal);
            var btStaticPlaneShape = new StaticPlaneShape(btPlaneNormal, planeConstant);

            btStaticPlaneShape.Margin = 0.04f;
            BtCollisionShapes.Add(btStaticPlaneShape);
            Debug.WriteLine("btStaticPlaneShape.Margin" + btStaticPlaneShape.Margin);
            var retval = new StaticPlaneShapeImp();

            retval.BtStaticPlaneShape     = btStaticPlaneShape;
            btStaticPlaneShape.UserObject = retval;
            return(retval);
        }
 public IStaticPlaneShapeImp AddStaticPlaneShape(float3 planeNormal, float planeConstant)
 {
     var btPlaneNormal = Translater.Float3ToBtVector3(planeNormal);
     var btStaticPlaneShape = new StaticPlaneShape(btPlaneNormal, planeConstant);
     btStaticPlaneShape.Margin = 0.04f;
     BtCollisionShapes.Add(btStaticPlaneShape);
     Debug.WriteLine("btStaticPlaneShape.Margin" + btStaticPlaneShape.Margin);
     var retval = new StaticPlaneShapeImp();
     retval.BtStaticPlaneShape = btStaticPlaneShape;
     btStaticPlaneShape.UserObject = retval;
     return retval;
 }