/// <summary> /// Construct a polyhedron collisin part from the specified vertices and faces. /// </summary> /// <param name="vertices">A list of all vertices in the polyhedron.</param> /// <param name="faces">A collection of faces, each defined by an array of indices specifying the vertices that belong to the face. /// The vertices are expected to be provided in counter-clockwise order for each face.</param> public PolyhedronPart(Vector3[] vertices, int[][] faces) { _compiled = new CompiledPolyhedron(vertices, faces); Initialize(); }
/// <summary> /// Construct a polyhedron collision part from the pre-compiled polyhedron. /// </summary> /// <param name="compiled"></param> public PolyhedronPart(CompiledPolyhedron compiled) { this._compiled = compiled; Initialize(); }