| 305 | |
| 306 | |
| 307 | void SampleLargeWorld::addFortress(SampleArray<PxVec3>& terrainVertices, const PxBounds3& bound, PxCollection& outCollection) |
| 308 | { |
| 309 | const char* pathname = getSampleMediaFilename("WallTower.repx"); |
| 310 | |
| 311 | MeshBuilder* mb = SAMPLE_NEW(MeshBuilder)(*this, pathname ); |
| 312 | const PxQuat q = PxShortestRotation(PxVec3(0.0f, 0.0f, 1.0f), PxVec3(0.0f, 1.0f, 0.0f)); |
| 313 | |
| 314 | mb->addRepXToPxCollection( PxTransform(gFortressPos, q), PxVec3(0.05f, 0.05f, 0.05f), outCollection); |
| 315 | |
| 316 | DELETESINGLE( mb ); |
| 317 | } |
| 318 | |
| 319 | PxTriangleMesh* SampleLargeWorld::generateTriMesh(const SampleArray<PxVec3>* vertices, const SampleArray<PxU32>* indices) |
| 320 | { |
nothing calls this directly
no test coverage detected