| 560 | } |
| 561 | |
| 562 | void SampleLargeWorld::onSubstep(PxF32 dtime) |
| 563 | { |
| 564 | PhysXSample::onSubstep(dtime); |
| 565 | |
| 566 | mBGLoader->updateChunk(getCamera().getPos()); |
| 567 | |
| 568 | PxExtendedVec3 curCCTPosition = mActor->getController()->getPosition(); |
| 569 | if(mWorldBound.contains(toVec3(curCCTPosition))) |
| 570 | { |
| 571 | mLastCCTPosition = curCCTPosition; |
| 572 | } |
| 573 | else |
| 574 | { |
| 575 | PxSceneWriteLock scopedLock(*mScene); |
| 576 | mActor->getController()->setPosition(mLastCCTPosition); |
| 577 | } |
| 578 | } |
| 579 | |
| 580 | void SampleLargeWorld::collectInputEvents(std::vector<const SampleFramework::InputEvent*>& inputEvents) |
| 581 | { |
nothing calls this directly
no test coverage detected