public ConvexShape( ShapeGeometry baseGeometry, Vector3d position, double mass, bool isStatic) { convexShape = new ShapeDefinition.ConvexShape( baseGeometry.GetGeometry(), position, mass, isStatic); }
public ConvexShape( Vector3d[] inputVertexPosition, Vector3d position, double mass, bool isStatic) { ShapeGeometry baseGeometry = new ShapeGeometry(inputVertexPosition); convexShape = new ShapeDefinition.ConvexShape( baseGeometry.GetGeometry(), position, mass, isStatic); }
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); }