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

Function populate

physx/source/physx/src/NpSceneQueries.cpp:67–77  ·  view source on GitHub ↗

fill the helper actor shape

Source from the content-addressed store, hash-verified

65
66 // fill the helper actor shape
67 static PX_FORCE_INLINE void populate(const PrunerPayload& payload, ActorShape& as)
68 {
69 Scb::Shape* localShape = reinterpret_cast<Scb::Shape*>(payload.data[0]);
70 Scb::Actor* localActor = reinterpret_cast<Scb::Actor*>(payload.data[1]);
71
72 as.scbShape = localShape;
73 as.scbActor = localActor;
74
75 as.actor = static_cast<PxRigidActor*>(static_cast<const Sc::RigidCore&>(localActor->getActorCore()).getPxActor());
76 as.shape = localShape->getScShape().getPxShape();
77 }
78}
79
80///////////////////////////////////////////////////////////////////////////////

Callers 1

invokeMethod · 0.85

Calls 2

getPxShapeMethod · 0.80
getPxActorMethod · 0.45

Tested by

no test coverage detected