| 2428 | /////////////////////////////////////////////////////////////////////////////// |
| 2429 | |
| 2430 | PxRigidDynamic* PhysXSample::createCompound(const PxVec3& pos, const std::vector<PxTransform>& localPoses, const std::vector<const PxGeometry*>& geometries, const PxVec3* linVel, RenderMaterial* material, PxReal density) |
| 2431 | { |
| 2432 | PxSceneWriteLock scopedLock(*mScene); |
| 2433 | PxRigidDynamic* compound = GenerateCompound(*mPhysics, mScene, mMaterial, pos, PxQuat(PxIdentity), localPoses, geometries, false, density); |
| 2434 | |
| 2435 | addPhysicsActors(compound); |
| 2436 | if(linVel) |
| 2437 | compound->setLinearVelocity(*linVel); |
| 2438 | |
| 2439 | createRenderObjectsFromActor(compound, material); |
| 2440 | |
| 2441 | return compound; |
| 2442 | } |
| 2443 | |
| 2444 | PxRigidDynamic* PhysXSample::createTestCompound(const PxVec3& pos, PxU32 nbBoxes, float boxSize, float amplitude, const PxVec3* vel, RenderMaterial* material, PxReal density, bool makeSureVolumeEmpty) |
| 2445 | { |
no test coverage detected