| 932 | } |
| 933 | |
| 934 | bool 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 | |
| 950 | void SampleLargeWorld::attachNearestObjectsToCCT() |
| 951 | { |
nothing calls this directly
no test coverage detected