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

Method onSubstep

physx/samples/samplelargeworld/SampleLargeWorld.cpp:562–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562void 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
580void SampleLargeWorld::collectInputEvents(std::vector<const SampleFramework::InputEvent*>& inputEvents)
581{

Callers

nothing calls this directly

Calls 7

toVec3Function · 0.85
updateChunkMethod · 0.80
getPosMethod · 0.45
getPositionMethod · 0.45
getControllerMethod · 0.45
containsMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected