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 ConcaveShape( ShapeGeometry baseGeometry, Vector3d position, double mass, bool isStatic) { baseGeometry.SetConcaveCommonGeometry(); this.concaveShape = new ShapeDefinition.ConcaveShape( 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); }
public ConcaveShape( Vector3d[] inputVertexPosition, int[][] inputTriangle, Vector3d position, double mass, bool isStatic) { ShapeGeometry shapeGeometry = new ShapeGeometry(inputVertexPosition, inputTriangle); shapeGeometry.SetConcaveCommonGeometry(); CommonGeometry baseGeometry = shapeGeometry.GetGeometry(); this.concaveShape = new ShapeDefinition.ConcaveShape( baseGeometry, position, mass, isStatic); }