public virtual Vector3 LocalGetSupportingVertex(Vector3 vec) { Vector3 supportVertex; Matrix ident = Matrix.Identity; SupportVertexCallback supportCallback = new SupportVertexCallback(vec, ident); Vector3 aabbMax = new Vector3(1e30f, 1e30f, 1e30f); LocalProcessAllTriangles(supportCallback, -aabbMax, aabbMax); supportVertex = supportCallback.SupportVertexLocal; return(supportVertex); }
public virtual Vector3 LocalGetSupportingVertex(Vector3 vec) { Vector3 supportVertex; Matrix ident = Matrix.Identity; SupportVertexCallback supportCallback = new SupportVertexCallback(vec, ident); Vector3 aabbMax = new Vector3(1e30f, 1e30f, 1e30f); LocalProcessAllTriangles(supportCallback, -aabbMax, aabbMax); supportVertex = supportCallback.SupportVertexLocal; return supportVertex; }