OROCHI
 
Loading...
Searching...
No Matches
GxUnitSoftbodyCollision::GxHitCapsule2 Class Reference

クロスシミュレーション用コリジョンクラス : カプセル 2 形状クラス More...

#include <GxUnitSoftbodyCollision.h>

Inheritance diagram for GxUnitSoftbodyCollision::GxHitCapsule2:
Collaboration diagram for GxUnitSoftbodyCollision::GxHitCapsule2:

Public Member Functions

定義
初期化
b32 setup (GxUnitModelBase *pParentModel, GxResSoftbodyCollision::GxSoftbodyCollisionData *pObject) override
 初期化
 
void update (GxUnitModelBase *pParentModel) override
 更新
 
b32 check (s32 jointIndex, const GxVector3 &position, f32 updateRatio, f32 updateRatioOld, GxVector3 &direct, GxVector3 &normal, f32 radius) override
 チェック
 
- Public Member Functions inherited from GxUnitSoftbodyCollision::GxHitCapsule
- Public Member Functions inherited from GxUnitSoftbodyCollision::GxHitBase
b32 startAnalyse (s32 targetJointIndex)
 質点についているジョイントから自身と当たれるかどうか解析
 
b32 executeAnalyse (GxUnitModelBase::GxJoint *pNow, s32 targetJointIndex)
 質点についているジョイントから自身と当たれるかどうか解析開始

 

Public Attributes

メンバ変数
f32 _r2
 カプセル半径 2
 
- Public Attributes inherited from GxUnitSoftbodyCollision::GxHitCapsule
f32 _radius
 カプセル半径
 
u32 _jointIndex [2]
 両端点が参照するボーン番号
 
GxVector3 _offset [2]
 端ボーンからのオフセット
 
GxVector3 _position [2]
 両端点
 
GxVector3 _positionOld [2]
 旧両端点
 
GxVector3 _vector
 
 
GxVector3 _vectorOld
 旧芯、旧芯
 
f32 _radiusOld
 旧外接球半径
 
- Public Attributes inherited from GxUnitSoftbodyCollision::GxHitBase
GxUnitModelBase_pParentModel
 親モデル
 
GxResSoftbodyCollision::OBJECT_TYPE _objectType
 オブジェクトタイプ
 
b32 _enable
 有効/無効
 
f32 _sphereRadius
 外接球半径 / 球ではそのまま使う
 
GxVector3 _spherePosition
 外接球中心 / 球ではそのまま使う
 
GxVector3 _spherePositionOld
 外接球中心 / 球ではそのまま使う
 
GxResSoftbodyCollision::GxSoftbodyCollisionData::OPERATION_TYPE _hitOperationType
 衝突時の振る舞い
 
s32 _hitJointIndex [GxResSoftbodyCollision::GxSoftbodyCollisionData::HIT_JOINT_MAX]
 ヒット判定をするジョイント(↑がtrueの場合のみ有効で-1は無効値)
 
u32 _id
 任意ID
 

Detailed Description

クロスシミュレーション用コリジョンクラス : カプセル 2 形状クラス

Member Function Documentation

◆ check()

b32 GxUnitSoftbodyCollision::GxHitCapsule2::check ( s32 jointIndex,
const GxVector3 & position,
f32 updateRatio,
f32 updateRatioOld,
GxVector3 & direct,
GxVector3 & normal,
f32 radius )
overridevirtual

チェック

Parameters
position[in] 質点位置
updateRatio[in] このフレーム時間に対するシミュレーションの相対時間
updateRatioOld[in] このフレーム時間に対するシミュレーションの相対時間(一つ前)
direct[in/out] 補正方向
normal[in/out] 補正コリジョン表面法線方向
radius[in] 質点半径

Reimplemented from GxUnitSoftbodyCollision::GxHitCapsule.

Here is the call graph for this function:

◆ setup()

b32 GxUnitSoftbodyCollision::GxHitCapsule2::setup ( GxUnitModelBase * pParentModel,
GxResSoftbodyCollision::GxSoftbodyCollisionData * pObject )
overridevirtual

初期化

Parameters
pParentModel[in] 親モデル
pObject[in] オブジェクト
Returns
成功ならtrue

Reimplemented from GxUnitSoftbodyCollision::GxHitCapsule.

◆ update()

void GxUnitSoftbodyCollision::GxHitCapsule2::update ( GxUnitModelBase * pParentModel)
overridevirtual

更新

Parameters
pParentModel[in] 親モデル

Reimplemented from GxUnitSoftbodyCollision::GxHitCapsule.


The documentation for this class was generated from the following files: