Exemplo n.º 1
0
 public void GetBulletTriangle(int prim_index, TriangleShapeEx triangle)
 {
     GetIndices(prim_index, out indicesHolder[0], out indicesHolder[1], out indicesHolder[2]);
     GetVertex(indicesHolder[0], out triangle.m_vertices1[0]);
     GetVertex(indicesHolder[1], out triangle.m_vertices1[1]);
     GetVertex(indicesHolder[2], out triangle.m_vertices1[2]);
     triangle.SetMargin(m_margin);
 }
Exemplo n.º 2
0
        public virtual void ProcessTriangle(IndexedVector3[] triangle, int partId, int triangleIndex)
        {
            TriangleShapeEx tri1 = new TriangleShapeEx(ref triangle[0], ref triangle[1], ref triangle[2]);

            tri1.SetMargin(margin);
            if (swapped)
            {
                algorithm.SetPart0(partId);
                algorithm.SetFace0(triangleIndex);
            }
            else
            {
                algorithm.SetPart1(partId);
                algorithm.SetFace1(triangleIndex);
            }
            algorithm.GImpactVsShape(body0, body1, gimpactshape0, tri1, swapped);
        }