■NxSceneDesc クラス | Top |
シーン情報を設定します。
変数名 有効値 初期値 説明 gravity [ 0, 0, 0 ] NxVec3 クラス。重力の方向ベクトルです。 userNotify NULL NxUserNotify クラスのポインタ。 fluidUserNotify NULL NxFluidUserNotify クラスのポインタ。 clothUserNotify NULL NxClothUserNotify クラスのポインタ。 softBodyUserNotify NULL NxSoftBodyUserNotify クラスのポインタ。 userContactModify NULL NxUserContactModify クラスのポインタ。 userTriggerReport NULL NxUserTriggerReport クラスのポインタ。 userContactReport NULL NxUserContactReport クラスのポインタ。 userActorPairFiltering 使用できません。 maxTimestep ( 0 〜 inf ) 1.0 / 60.0 NxReal 型。 maxIter 8 NxU32 型。 timeStepMethod NX_TIMESTEP_FIXED NxTimeStepMethod 列挙型。 maxBounds NULL NxBounds3 クラスのポインタ。 limits NULL NxSceneLimits クラスのポインタ。 simType NX_SIMULATION_SW NxSimulationType 列挙型。ハードウェアを使用するかを設定します。 groundPlane false NX_BOOL 型。 boundsPlanes false NX_BOOL 型。 flags NX_SF_SIMULATE_SEPARATE_THREAD |
NX_SF_DISABLE_SCENE_MUTEXNxU32 型。 customScheduler NULL NxUserScheduler クラスのポインタ。 simThreadStackSize NxU32 型。 simThreadPriority NxThreadPriority 列挙型。 simThreadMask 0 NxU32 型。 internalThreadCount 0 NxU32 型。 workerThreadStackSize NxU32 型。 workerThreadPriority NxThreadPriority 列挙型。 threadMask 0 NxU32 型。 backgroundThreadCount 0 NxU32 型。 backgroundThreadPriority NxThreadPriority 列挙型。 backgroundThreadMask 0 NxU32 型。 upAxis NxU32 型。 subdivisionLevel NxU32 型。 staticStructure NxPruningStructure 列挙型。 dynamicStructure NxPruningStructure 列挙型。 dynamicTreeRebuildRateHint ( 5 〜 inf ) 100 NxU32 型。 userData NULL void 型のポインタ。 bpType NX_BP_TYPE_SAP_SINGLE NxBroadPhaseType 列挙型。 nbGridCellsX 0 NxU32 型。 nbGridCellsY 0 NxU32 型。 solverBatchSize 32 NxU32 型。
メンバ関数
関数名 説明 setToDefault 初期値を設定します。 isValid
NxSceneDesc クラスはシーンを設定するために一時的に使用します。設定を反映させるには NxPhysicsSDK::createScene を使用する必要があります。
ヘッダー NxSceneDesc.h インポート ライブラリ PhysXLoader.lib
NxPhysicsSDK::createScene