MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / getNpAggregate

Method getNpAggregate

deps/physx/physx/source/physx/src/NpActor.cpp:280–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278///////////////////////////////////////////////////////////////////////////////
279
280NpAggregate* NpActor::getNpAggregate(PxU32& index) const
281{
282 PX_ASSERT(getNbConnectors(NpConnectorType::eAggregate) <= 1);
283
284 if(mConnectorArray)
285 {
286 // PT: TODO: sort by type to optimize this...
287 for(PxU32 i=0; i < mConnectorArray->size(); i++)
288 {
289 NpConnector& c = (*mConnectorArray)[i];
290 if (c.mType == NpConnectorType::eAggregate)
291 {
292 index = i;
293 return static_cast<NpAggregate*>(c.mObject);
294 }
295 }
296 }
297
298 return NULL;
299}
300
301void NpActor::setAggregate(NpAggregate* np, PxActor& owner)
302{

Callers 1

removeActorTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected