■NxBodyDesc クラス | Top |
アクターに動的なパラメータを設定します。
メンバ関数
変数名 有効値 初期値 説明 massLocalPose 単位行列 NxMat34 クラス。 massSpaceInertia [ 0, 0, 0 ] NxVec3 クラス。 mass ( 0 〜 inf ) 0.0 NxReal 型。 linearVelocity [ 0, 0, 0 ] NxVec3 クラス。初速度と方向を示すベクトルを設定します。 angularVelocity [ 0, 0, 0 ] NxVec3 クラス。 wakeUpCounter ( 0 〜 inf ) 20.0f * 0.02f NxReal 型。 linearDamping ( 0 〜 inf ) 0.0 NxReal 型。 angularDamping ( 0 〜 inf ) 0.05 NxReal 型。回転による減衰係数。 maxAngularVelocity ( 0 〜 inf ) -1.0 NxReal 型。 CCDMotionThreshold ( 0 〜 inf ) 0.0 NxReal 型。 flags NX_BF_VISUALIZATION | NX_BF_ENERGY_SLEEP_TEST NxU32 型。 sleepLinearVelocity ( 0 〜 inf ) -1.0 NxReal 型。 sleepAngularVelocity ( 0 〜 inf ) -1.0 NxReal 型。 solverIterationCount ( 1 〜 255 ) 4 NxU32 型。 sleepEnergyThreshold ( 0 〜 inf ) 0.005 NxReal 型。 sleepDamping ( 0 〜 inf ) 0 NxReal 型。 contactReportThreshold ( 0 〜 inf ) NX_MAX_REAL NxReal 型。
関数名 説明 setToDefault 初期値を設定します。 isValid
アクターに動的なパラメータを設定するには NxActorDescBase::body メンバ変数に 必要なパラメータを設定したNxBodyDesc クラスのポインタを設定します。
ヘッダー NxBodyDesc.h インポート ライブラリ PhysXLoader.lib
NxActorDescBase