13GX_UTILITY_NAMESPACE_BEGIN()
73 void cleanup(
void)
override;
98 GxSoftbodyChainData* getChainData(u32 index);
100 GxSoftbodyChainData* getChainDataFromID(u32
id);
102 GxSoftbodyClothData* getClothData(u32 index);
104 GxSoftbodyClothData* getClothDataFromID(u32
id);
106 GxSoftbodyChainAdditionalData* getChainAdditionalData(u32 index);
108 GxSoftbodyClothAdditionalData* getClothAdditionalData(u32 index);
456 GxCellData(
void) : _radius(0.0f), _twistLimit(90.0f), _angleLimit(180.0f), _baseRatio(0.0f), _windReceivedRatio(
GxVector3::
ONE), _isEnableLink(true){}
545 GxResSoftbodySimulationXml(
void);
561 void getToolRtti(
GxArray& arrayTool)
const override;
571 constexpr GxResModel* getResModel(
void)
const {
return _pResModel; }
573 constexpr void setResModel(
GxResModel* pResModel) { _pResModel = pResModel; }
575 constexpr GxResMotionPackage* getResMotionPackage(
void)
const {
return _pResMotionPackage; }
577 constexpr void setResMotionPackage(
GxResMotionPackage* pResMotionPackage) { _pResMotionPackage = pResMotionPackage; }
592GX_UTILITY_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
#define GX_RTTI_RESOURCE(__THIS__, __BASE__)
リソースクラス型情報宣言
Definition GxRttiResource.h:102
配列クラス
Definition GxArrayClassBase.h:18
constexpr u32 getCount(void) const
配列数を取得
Definition GxArrayClassBase.h:109
配列クラス
Definition GxArray.h:18
オブジェクト基底クラス
Definition GxBase.h:88
リソース基底クラス
Definition GxResBase.h:23
モデルリソースクラス
Definition GxResModel.h:20
モーションパッケージリソース
Definition GxResMotionPackage.h:20
質点データクラス
Definition GxResSoftbodySimulation.h:338
f32 _angleLimit
個別質点角度限界設定
Definition GxResSoftbodySimulation.h:364
f32 _baseRatio
基姿勢の割合
Definition GxResSoftbodySimulation.h:366
GxVector3 _normal
個別質点指定法線
Definition GxResSoftbodySimulation.h:365
f32 _radius
個別質点当たり半径
Definition GxResSoftbodySimulation.h:362
GxVector3 _windReceivedRatio
風を受ける割合
Definition GxResSoftbodySimulation.h:367
f32 _twistLimit
個別質点ねじれ限界角度
Definition GxResSoftbodySimulation.h:363
鎖用追加データ(質点個別データ)
Definition GxResSoftbodySimulation.h:322
const GxCellData * getCellData(u32 index) const
個別質点情報取得
Definition GxResSoftbodySimulation.cpp:367
GX_FORCE_INLINE GxArrayClassBase & getCellDataArray(void)
個別質点情報管理配列取得
Definition GxResSoftbodySimulation.h:394
GX_FORCE_INLINE const GxVector3 & getNormal(u32 index) const
個別質点情報取得 - 法線
Definition GxResSoftbodySimulation.h:403
GX_FORCE_INLINE f32 getBaseRatio(u32 index) const
個別質点情報取得 - 基姿勢の割合
Definition GxResSoftbodySimulation.h:405
GX_FORCE_INLINE f32 getAngleLimit(u32 index) const
個別質点情報取得 - 回転限界角度
Definition GxResSoftbodySimulation.h:401
constexpr u32 getCellDataCount(void) const
個別質点情報数取得
Definition GxResSoftbodySimulation.h:388
GX_FORCE_INLINE GxVector3 getWindRatio(u32 index) const
個別質点情報取得 - 風を受ける割合
Definition GxResSoftbodySimulation.h:407
GX_FORCE_INLINE f32 getRadius(u32 index) const
個別質点情報取得 - 半径
Definition GxResSoftbodySimulation.h:397
void cleanup(void)
保持しているデータを解放
Definition GxResSoftbodySimulation.cpp:353
GxArrayClassBase _cellDataArray
個別質点情報
Definition GxResSoftbodySimulation.h:415
GX_FORCE_INLINE f32 getTwistLimit(u32 index) const
個別質点情報取得 - ねじれ限界角度
Definition GxResSoftbodySimulation.h:399
鎖データクラス
Definition GxResSoftbodySimulation.h:137
GxVector3 _windDirection
風の向き的な
Definition GxResSoftbodySimulation.h:180
f32 _moveStrengthCoefficient
Y軸平行移動量への係数
Definition GxResSoftbodySimulation.h:173
f32 _twistInterpolateSpeed
ねじれ補間速度
Definition GxResSoftbodySimulation.h:177
GxVector3 _adjustGravityDirection
補整重力方向
Definition GxResSoftbodySimulation.h:184
f32 _adjustGravityBlendRate
ローカル重力と補整重力のブレンド率(デフォルトは0.0fで、ローカル重力のみ利用)
Definition GxResSoftbodySimulation.h:185
f32 _airDamping
空気抵抗値
Definition GxResSoftbodySimulation.h:166
f32 _gravityForce
重力大きさ
Definition GxResSoftbodySimulation.h:181
GxVector3 _gravityDirection
重力方向
Definition GxResSoftbodySimulation.h:182
u32 _tailJointIndex
末端関節番号
Definition GxResSoftbodySimulation.h:175
b32 _excludeTailJointSkin
末端以外のジョイントをシミュレーション
Definition GxResSoftbodySimulation.h:187
u32 _moveStrength[2]
固定点の移動を他点へ伝える強さ
Definition GxResSoftbodySimulation.h:172
f32 _updateDelta
更新間隔
Definition GxResSoftbodySimulation.h:167
u32 _id
任意ID
Definition GxResSoftbodySimulation.h:186
f32 _windForce
風の大きさ的な
Definition GxResSoftbodySimulation.h:179
f32 _kb
バネ定数 - 曲げにくさ
Definition GxResSoftbodySimulation.h:164
u32 _jointCount
ボーン群の関節数
Definition GxResSoftbodySimulation.h:162
b32 _isUseMotionGravity
モーション収束フラグ
Definition GxResSoftbodySimulation.h:170
f32 _mass
総重量
Definition GxResSoftbodySimulation.h:165
b32 _isChainSimulation
最初からシミュレート開始するか否か
Definition GxResSoftbodySimulation.h:168
b32 _isUpdateAllMatrix
UpdateWorldMatrix するかどうか
Definition GxResSoftbodySimulation.h:169
b32 _isUseAdditionalData
追加情報の有無
Definition GxResSoftbodySimulation.h:176
GxVector3 _tailJointOffset
末端関節のオフセット
Definition GxResSoftbodySimulation.h:174
b32 _isUsetailJointId
末端関節番号でIDを使用するか
Definition GxResSoftbodySimulation.h:183
b32 _isRandom
乱数を使用するかどうか
Definition GxResSoftbodySimulation.h:178
u32 _processOffset
処理順のオフセット
Definition GxResSoftbodySimulation.h:161
GxSoftbodyChainData(void)
デフォルトコンストラクタ
Definition GxResSoftbodySimulation.cpp:224
b32 _isLocalWind
風向きを親ユニットのローカルで扱うかどうか
Definition GxResSoftbodySimulation.h:171
f32 _kt
バネ定数 - 伸びにくさ
Definition GxResSoftbodySimulation.h:163
質点データクラス
Definition GxResSoftbodySimulation.h:440
f32 _angleLimit
個別質点角度限界設定
Definition GxResSoftbodySimulation.h:466
f32 _baseRatio
基姿勢の割合
Definition GxResSoftbodySimulation.h:467
b32 _isEnableLink
列間の質点で繋がり(拘束)があるかどうか
Definition GxResSoftbodySimulation.h:469
GxVector3 _windReceivedRatio
風を受ける割合
Definition GxResSoftbodySimulation.h:468
f32 _radius
個別質点当たり半径
Definition GxResSoftbodySimulation.h:464
f32 _twistLimit
個別質点ねじれ限界角度
Definition GxResSoftbodySimulation.h:465
布用追加データ(質点個別データ)
Definition GxResSoftbodySimulation.h:424
GX_FORCE_INLINE GxVector3 getWindRatio(u32 index) const
個別質点情報取得 - 風を受ける割合
Definition GxResSoftbodySimulation.h:507
GX_FORCE_INLINE b32 isEnableLink(u32 index) const
列間の質点で繋がり(拘束)があるかどうか
Definition GxResSoftbodySimulation.h:509
constexpr u32 getCellDataCount(void) const
個別質点情報数取得
Definition GxResSoftbodySimulation.h:490
GX_FORCE_INLINE f32 getRadius(u32 index) const
個別質点情報取得 - 半径
Definition GxResSoftbodySimulation.h:499
const GxCellData * getCellData(u32 index) const
個別質点情報取得
Definition GxResSoftbodySimulation.cpp:434
GxArrayClassBase _cellDataArray
個別質点情報
Definition GxResSoftbodySimulation.h:517
GX_FORCE_INLINE GxArrayClassBase & getCellDataArray(void)
個別質点情報管理配列取得
Definition GxResSoftbodySimulation.h:496
void cleanup(void)
保持しているデータを解放
Definition GxResSoftbodySimulation.cpp:420
GX_FORCE_INLINE f32 getBaseRatio(u32 index) const
個別質点情報取得 - 基姿勢の割合
Definition GxResSoftbodySimulation.h:505
GX_FORCE_INLINE f32 getTwistLimit(u32 index) const
個別質点情報取得 - ねじれ限界角度
Definition GxResSoftbodySimulation.h:501
GX_FORCE_INLINE f32 getAngleLimit(u32 index) const
個別質点情報取得 - 回転限界角度
Definition GxResSoftbodySimulation.h:503
末端関節データクラス
Definition GxResSoftbodySimulation.h:211
u32 _tailJointIndex
末端関節番号
Definition GxResSoftbodySimulation.h:235
GxVector3 _tailJointOffset
末端関節のオフセット
Definition GxResSoftbodySimulation.h:236
布データクラス
Definition GxResSoftbodySimulation.h:196
f32 _airDamping
空気抵抗値
Definition GxResSoftbodySimulation.h:292
f32 _moveStrengthCoefficient
Y軸平行移動量への係数
Definition GxResSoftbodySimulation.h:300
u32 _moveStrength[2]
固定点の移動を他点へ伝える強さ
Definition GxResSoftbodySimulation.h:299
f32 _kb
バネ定数 - 曲げにくさ
Definition GxResSoftbodySimulation.h:290
GxVector3 _gravityDirection
重力方向
Definition GxResSoftbodySimulation.h:307
f32 _updateDelta
更新間隔
Definition GxResSoftbodySimulation.h:293
b32 _isUseAdditionalData
追加情報の有無
Definition GxResSoftbodySimulation.h:301
u32 _lineCount
全関節リスト数
Definition GxResSoftbodySimulation.h:286
void cleanup(void)
保持しているデータを解放
Definition GxResSoftbodySimulation.cpp:290
b32 _isUsetailJointId
末端関節番号でIDを使用するか
Definition GxResSoftbodySimulation.h:308
f32 _windForce
風の大きさ的な
Definition GxResSoftbodySimulation.h:304
f32 _twistInterpolateSpeed
ねじれ補間速度
Definition GxResSoftbodySimulation.h:302
u32 _jointCount
各関節リストの関節数(今は全部同じに)
Definition GxResSoftbodySimulation.h:287
b32 _isRandom
乱数を使用するかどうか
Definition GxResSoftbodySimulation.h:303
b32 _isSkirt
スカートかどうか(端と端が繋がっているかどうか)
Definition GxResSoftbodySimulation.h:297
b32 _isLocalWind
風向きを親ユニットのローカルで扱うかどうか
Definition GxResSoftbodySimulation.h:298
f32 _ks
バネ定数 - せん断力
Definition GxResSoftbodySimulation.h:289
f32 _kt
バネ定数 - 伸びにくさ
Definition GxResSoftbodySimulation.h:288
f32 _mass
総重量
Definition GxResSoftbodySimulation.h:291
GxVector3 _adjustGravityDirection
補整重力方向
Definition GxResSoftbodySimulation.h:310
GxVector3 _windDirection
風の向き的な
Definition GxResSoftbodySimulation.h:305
b32 _isClothSimulation
最初からシミュレート開始するか否か
Definition GxResSoftbodySimulation.h:294
const GxTailJointData * getTailJointData(u32 index) const
末端関節番号取得
Definition GxResSoftbodySimulation.cpp:304
GxArrayClassBase _tailJointDataArray
末端関節ごとに必要な情報
Definition GxResSoftbodySimulation.h:309
u32 _id
任意ID
Definition GxResSoftbodySimulation.h:312
GX_FORCE_INLINE u32 getTailJointIndex(u32 index) const
個別末端関節番号取得
Definition GxResSoftbodySimulation.h:275
GX_FORCE_INLINE GxArrayClassBase & getTailJointDataArray(void)
末端関節番号管理配列取得
Definition GxResSoftbodySimulation.h:272
constexpr u32 getTailJointDataCount(void) const
末端関節番号数取得
Definition GxResSoftbodySimulation.h:266
GX_FORCE_INLINE const GxVector3 & getTailJointOffset(u32 index) const
個別末端関節オフセット取得
Definition GxResSoftbodySimulation.h:277
f32 _gravityForce
重力大きさ
Definition GxResSoftbodySimulation.h:306
f32 _adjustGravityBlendRate
ローカル重力と補整重力のブレンド率(デフォルトは0.0fで、ローカル重力のみ利用)
Definition GxResSoftbodySimulation.h:311
b32 _isUseMotionGravity
モーション収束フラグ
Definition GxResSoftbodySimulation.h:296
u32 _processOffset
処理順のオフセット
Definition GxResSoftbodySimulation.h:285
b32 _isUpdateAllMatrix
UpdateWorldMatrix するかどうか
Definition GxResSoftbodySimulation.h:295
GxSoftbodyClothData(void)
デフォルトコンストラクタ
Definition GxResSoftbodySimulation.cpp:275
b32 _excludeTailJointSkin
末端以外のジョイントをシミュレーション
Definition GxResSoftbodySimulation.h:313
モデル対応物理シミュレーション統合リソースクラス
Definition GxResSoftbodySimulation.h:18
GX_FORCE_INLINE GxArrayClassBase & getChainAdditionalDataArray(void)
鎖追加データ管理配列取得
Definition GxResSoftbodySimulation.h:115
GX_FORCE_INLINE GxArrayClassBase & getClothAdditionalDataArray(void)
布追加データ管理配列取得
Definition GxResSoftbodySimulation.h:117
GxArrayClassBase _clothAdditionalDataArray
布追加データ管理配列
Definition GxResSoftbodySimulation.h:128
GxArrayClassBase _clothDataArray
布データ管理配列
Definition GxResSoftbodySimulation.h:126
constexpr u32 getClothAdditionalDataCount(void) const
布追加データ数取得
Definition GxResSoftbodySimulation.h:95
GxArrayClassBase _chainAdditionalDataArray
鎖追加データ管理配列
Definition GxResSoftbodySimulation.h:127
GX_FORCE_INLINE GxArrayClassBase & getClothDataArray(void)
布データ管理配列取得
Definition GxResSoftbodySimulation.h:113
constexpr u32 getChainAdditionalDataCount(void) const
鎖追加データ数取得
Definition GxResSoftbodySimulation.h:93
constexpr u32 getClothDataCount(void) const
布データ数取得
Definition GxResSoftbodySimulation.h:91
b32 load(GxStream &in, u32 dataSize)
リソースのロード
Definition GxResSoftbodySimulation.cpp:72
constexpr u32 getChainDataCount(void) const
鎖データ数取得
Definition GxResSoftbodySimulation.h:89
GX_FORCE_INLINE GxArrayClassBase & getChainDataArray(void)
鎖データ管理配列取得
Definition GxResSoftbodySimulation.h:111
GxArrayClassBase _chainDataArray
鎖データ管理配列
Definition GxResSoftbodySimulation.h:125
ストリーム基礎クラス
Definition GxStream.h:20
3次元ベクトル
Definition GxVector.h:245
32bitブーリアン
Definition GxDefine.h:173