| 1472 | } |
| 1473 | |
| 1474 | void TSStaticPolysoupConvex::getPolyList(AbstractPolyList* list) |
| 1475 | { |
| 1476 | // Transform the list into object space and set the pointer to the object |
| 1477 | MatrixF i(mObject->getTransform()); |
| 1478 | Point3F iS(mObject->getScale()); |
| 1479 | list->setTransform(&i, iS); |
| 1480 | list->setObject(mObject); |
| 1481 | |
| 1482 | // Add only the original collision triangle |
| 1483 | S32 base = list->addPoint(verts[0]); |
| 1484 | list->addPoint(verts[2]); |
| 1485 | list->addPoint(verts[1]); |
| 1486 | |
| 1487 | list->begin(0, (U32)idx ^ (uintptr_t)mesh); |
| 1488 | list->vertex(base + 2); |
| 1489 | list->vertex(base + 1); |
| 1490 | list->vertex(base + 0); |
| 1491 | list->plane(base + 0, base + 1, base + 2); |
| 1492 | list->end(); |
| 1493 | } |
| 1494 | |
| 1495 | void TSStaticPolysoupConvex::getFeatures(const MatrixF& mat, const VectorF& n, ConvexFeature* cf) |
| 1496 | { |
no test coverage detected