| 218 | |
| 219 | |
| 220 | PxShape* PxCloneShape(PxPhysics &physics, const PxShape& from, bool isExclusive) |
| 221 | { |
| 222 | Ps::InlineArray<PxMaterial*, 64> materials; |
| 223 | PxU16 materialCount = from.getNbMaterials(); |
| 224 | materials.resize(materialCount); |
| 225 | from.getMaterials(materials.begin(), materialCount); |
| 226 | |
| 227 | PxShape* to = physics.createShape(from.getGeometry().any(), materials.begin(), materialCount, isExclusive, from.getFlags()); |
| 228 | |
| 229 | to->setLocalPose(from.getLocalPose()); |
| 230 | to->setContactOffset(from.getContactOffset()); |
| 231 | to->setRestOffset(from.getRestOffset()); |
| 232 | to->setSimulationFilterData(from.getSimulationFilterData()); |
| 233 | to->setQueryFilterData(from.getQueryFilterData()); |
| 234 | return to; |
| 235 | } |
| 236 | |
| 237 | |
| 238 | namespace |
no test coverage detected