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

Method readyToSyncCCT

physx/samples/samplelargeworld/SampleLargeWorld.cpp:934–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934bool SampleLargeWorld::readyToSyncCCT()
935{
936 PxSceneReadLock scopedLock(*mScene);
937 PxVec3 pos = toVec3(mActor->getController()->getPosition());
938
939 PxRigidDynamic* actor = mActor->getController()->getActor();
940 PxShape* capsuleShape = getShape( *actor );
941
942 PxCapsuleGeometry capGeom(capsuleShape->getGeometry().capsule());
943
944 PxQueryFilterData objType = PxQueryFilterData(PxQueryFlag::eSTATIC);
945 PxHitFlags hitFlag = PxHitFlag::ePOSITION|PxHitFlag::eNORMAL;
946 PxSweepBuffer hit;
947 return getActiveScene().sweep(capGeom, PxTransform(pos), PxVec3(0.0f, -1.0f,0.0f), 1000.f, hit, hitFlag, objType);
948}
949
950void SampleLargeWorld::attachNearestObjectsToCCT()
951{

Callers

nothing calls this directly

Calls 10

toVec3Function · 0.85
getShapeFunction · 0.85
PxQueryFilterDataClass · 0.85
PxTransformClass · 0.50
PxVec3Class · 0.50
getPositionMethod · 0.45
getControllerMethod · 0.45
getActorMethod · 0.45
getGeometryMethod · 0.45
sweepMethod · 0.45

Tested by

no test coverage detected