コード例 #1
0
 public ConvexShape(
     ShapeGeometry baseGeometry,
     Vector3d position,
     double mass,
     bool isStatic)
 {
     convexShape = new ShapeDefinition.ConvexShape(
         baseGeometry.GetGeometry(),
         position,
         mass,
         isStatic);
 }
コード例 #2
0
        public ConvexShape(
            Vector3d[] inputVertexPosition,
            Vector3d position,
            double mass,
            bool isStatic)
        {
            ShapeGeometry baseGeometry = new ShapeGeometry(inputVertexPosition);

            convexShape = new ShapeDefinition.ConvexShape(
                baseGeometry.GetGeometry(),
                position,
                mass,
                isStatic);
        }
コード例 #3
0
        public ConvexShape(
            Vector3d[] inputVertexPosition,
            int[][] inputTriangle,
            Vector3d position,
            double mass,
            bool isStatic)
        {
            TriangleMesh[] triangleMeshes = CommonUtilities.GetTriangleMeshes(inputTriangle);
            ShapeGeometry  baseGeometry   = new ShapeGeometry(inputVertexPosition, inputTriangle);

            convexShape = new ShapeDefinition.ConvexShape(
                baseGeometry.GetGeometry(),
                position,
                mass,
                isStatic);
        }