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

Function PxCloneShape

physx/source/physxextensions/src/ExtSimpleFactory.cpp:220–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219
220PxShape* 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
238namespace

Callers 1

copyStaticPropertiesFunction · 0.85

Calls 15

setRestOffsetMethod · 0.80
getRestOffsetMethod · 0.80
setQueryFilterDataMethod · 0.80
getQueryFilterDataMethod · 0.80
getNbMaterialsMethod · 0.45
resizeMethod · 0.45
getMaterialsMethod · 0.45
beginMethod · 0.45
createShapeMethod · 0.45
getGeometryMethod · 0.45

Tested by

no test coverage detected