예제 #1
0
        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);
        }
예제 #2
0
 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;
 }