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

Method Scene

physx/source/simulationcontroller/src/ScScene.cpp:547–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545};
546
547Sc::Scene::Scene(const PxSceneDesc& desc, PxU64 contextID) :
548 mContextId (contextID),
549 mActiveBodies (PX_DEBUG_EXP("sceneActiveBodies")),
550 mActiveKinematicBodyCount (0),
551 mPointerBlock8Pool (PX_DEBUG_EXP("scenePointerBlock8Pool")),
552 mPointerBlock16Pool (PX_DEBUG_EXP("scenePointerBlock16Pool")),
553 mPointerBlock32Pool (PX_DEBUG_EXP("scenePointerBlock32Pool")),
554 mLLContext (0),
555 mBodyGravityDirty (true),
556 mDt (0),
557 mOneOverDt (0),
558 mTimeStamp (1), // PT: has to start to 1 to fix determinism bug. I don't know why yet but it works.
559 mReportShapePairTimeStamp (0),
560 mTriggerBufferAPI (PX_DEBUG_EXP("sceneTriggerBufferAPI")),
561 mRemovedShapeCountAtSimStart (0),
562 mArticulations (PX_DEBUG_EXP("sceneArticulations")),
563 mBrokenConstraints (PX_DEBUG_EXP("sceneBrokenConstraints")),
564 mActiveBreakableConstraints (PX_DEBUG_EXP("sceneActiveBreakableConstraints")),
565 mMemBlock128Pool (PX_DEBUG_EXP("PxsContext ConstraintBlock128Pool")),
566 mMemBlock256Pool (PX_DEBUG_EXP("PxsContext ConstraintBlock256Pool")),
567 mMemBlock384Pool (PX_DEBUG_EXP("PxsContext ConstraintBlock384Pool")),
568 mNPhaseCore (NULL),
569 mKineKineFilteringMode (desc.kineKineFilteringMode),
570 mStaticKineFilteringMode (desc.staticKineFilteringMode),
571 mSleepBodies (PX_DEBUG_EXP("sceneSleepBodies")),
572 mWokeBodies (PX_DEBUG_EXP("sceneWokeBodies")),
573 mEnableStabilization (desc.flags & PxSceneFlag::eENABLE_STABILIZATION),
574 mClients (PX_DEBUG_EXP("sceneClients")),
575 mActiveActors (PX_DEBUG_EXP("clientActiveActors")),
576 mFrozenActors (PX_DEBUG_EXP("clientFrozenActors")),
577 mClientPosePreviewBodies (PX_DEBUG_EXP("clientPosePreviewBodies")),
578 mClientPosePreviewBuffer (PX_DEBUG_EXP("clientPosePreviewBuffer")),
579 mSimulationEventCallback (NULL),
580 mBroadPhaseCallback (NULL),
581 mInternalFlags (SceneInternalFlag::eSCENE_DEFAULT),
582 mPublicFlags (desc.flags),
583 mStaticAnchor (NULL),
584 mBatchRemoveState (NULL),
585 mLostTouchPairs (PX_DEBUG_EXP("sceneLostTouchPairs")),
586 mOutOfBoundsIDs (PX_DEBUG_EXP("sceneOutOfBoundsIds")),
587 mVisualizationScale (0.0f),
588 mVisualizationParameterChanged (false),
589 mNbRigidStatics (0),
590 mNbRigidDynamics (0),
591 mSecondPassNarrowPhase (contextID, this, "ScScene.secondPassNarrowPhase"),
592 mPostNarrowPhase (contextID, this, "ScScene.postNarrowPhase"),
593 mFinalizationPhase (contextID, this, "ScScene.finalizationPhase"),
594 mUpdateCCDMultiPass (contextID, this, "ScScene.updateCCDMultiPass"),
595 mAfterIntegration (contextID, this, "ScScene.afterIntegration"),
596 mConstraintProjection (contextID, this, "ScScene.constraintProjection"),
597 mPostSolver (contextID, this, "ScScene.postSolver"),
598 mSolver (contextID, this, "ScScene.rigidBodySolver"),
599 mUpdateBodiesAndShapes (contextID, this, "ScScene.updateBodiesAndShapes"),
600 mUpdateSimulationController (contextID, this, "ScScene.updateSimulationController"),
601 mUpdateDynamics (contextID, this, "ScScene.updateDynamics"),
602 mProcessLostContactsTask (contextID, this, "ScScene.processLostContact"),
603 mProcessLostContactsTask2 (contextID, this, "ScScene.processLostContact2"),
604 mProcessLostContactsTask3 (contextID, this, "ScScene.processLostContact3"),

Callers

nothing calls this directly

Calls 15

PxvGetPhysXGpuFunction · 0.85
createMemoryManagerFunction · 0.85
createFunction · 0.85
createDynamicsContextFunction · 0.85
createTGSDynamicsContextFunction · 0.85
setLimitsFunction · 0.85
setFrictionTypeFunction · 0.85
PxMemCopyFunction · 0.85
getErrorCallbackMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected