MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / addFortress

Method addFortress

physx/samples/samplelargeworld/ChunkLoader.cpp:307–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305
306
307void 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
319PxTriangleMesh* SampleLargeWorld::generateTriMesh(const SampleArray<PxVec3>* vertices, const SampleArray<PxU32>* indices)
320{

Callers

nothing calls this directly

Calls 4

getSampleMediaFilenameFunction · 0.85
addRepXToPxCollectionMethod · 0.80
PxVec3Class · 0.50
PxTransformClass · 0.50

Tested by

no test coverage detected