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

Method setLocalPose

physx/source/physx/src/NpShape.cpp:344–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void NpShape::setLocalPose(const PxTransform& newShape2Actor)
345{
346 PX_CHECK_AND_RETURN(newShape2Actor.isSane(), "PxShape::setLocalPose: pose is not valid.");
347 PX_CHECK_AND_RETURN(isWritable(), "PxShape::setLocalPose: shared shapes attached to actors are not writable.");
348 NP_WRITE_CHECK(getOwnerScene());
349
350 mShape.setShape2Actor(newShape2Actor.getNormalized());
351
352 updateSQ("PxShape::setLocalPose: Shape is a part of pruning structure, pruning structure is now invalid!");
353}
354
355PxTransform NpShape::getLocalPose() const
356{

Callers 15

createLargeSphereFunction · 0.45
createVehicleActorFunction · 0.45
addWindMillsMethod · 0.45
changeMoodMethod · 0.45
createSnowManMethod · 0.45
createMethod · 0.45
GenerateCompoundFunction · 0.45
setupActorFunction · 0.45
addStaticObstacleMethod · 0.45
addDynamicObstacleMethod · 0.45
setupMethod · 0.45

Calls 2

isSaneMethod · 0.45
getNormalizedMethod · 0.45

Tested by

no test coverage detected