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

Function getPxActor

physx/source/physx/src/buffering/ScbScenePvdClient.cpp:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 ///////////////////////////////////////////////////////////////////////////////
71
72 PX_FORCE_INLINE static const PxActor* getPxActor(const Scb::Actor* scbActor)
73 {
74 const PxActorType::Enum type = scbActor->getActorCore().getActorCoreType();
75 if(type == PxActorType::eRIGID_DYNAMIC)
76 return getNpRigidDynamic(static_cast<const Scb::Body*>(scbActor));
77 else if(type == PxActorType::eRIGID_STATIC)
78 return getNpRigidStatic(static_cast<const Scb::RigidStatic*>(scbActor));
79 else if(type == PxActorType::eARTICULATION_LINK)
80 return getNpArticulationLink(static_cast<const Scb::Body*>(scbActor));
81
82 return NULL;
83 }
84
85 struct CreateOp
86 {

Callers 6

createPvdInstanceMethod · 0.85
updatePvdPropertiesMethod · 0.85
releasePvdInstanceMethod · 0.85
attachAggregateActorMethod · 0.85
detachAggregateActorMethod · 0.85
attachMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected