イベントあたりクラス More...
#include <GxEventHit.h>
Classes | |
class | GxObject |
イベントあたりオブジェクトクラス More... | |
class | GxWorld |
イベントあたりワールドクラス More... | |
Public Member Functions | |
初期化 | |
GxEventHit (void) | |
デフォルトコンストラクタ | |
~GxEventHit (void) override | |
デストラクタ | |
![]() | |
GxCollision (void) | |
デフォルトコンストラクタ | |
~GxCollision (void) override | |
デストラクタ | |
void | clearList (void) |
全オブジェクトをリストから削除 | |
virtual GxObject * | createSphere (b32 active, u32 id, const GxMatrixAffine *pMatrix, const GxVector3 &offset, const GxShapeSphere &sphere) |
球の作成 | |
virtual GxObject * | createBox (b32 active, u32 id, const GxMatrixAffine *pMatrix, const GxVector3 &offset, const GxShapeBox &box) |
ボックスの作成 | |
virtual GxObject * | createMultisphere (b32 active, u32 id, const GxMatrixAffine *pMatrix0, const GxVector3 &offset0, const GxMatrixAffine *pMatrix1, const GxVector3 &offset1, const GxShapeMultisphere &multisphere) |
マルチ球の作成 | |
virtual GxObject * | createCylinder (b32 active, u32 id, const GxMatrixAffine *pMatrix, const GxVector3 &offset, const GxShapeCylinder &cylinder) |
円柱の作成 | |
virtual GxObject * | createCapsule (b32 active, u32 id, const GxMatrixAffine *pMatrix, const GxVector3 &offset, const GxShapeCapsule &capsule) |
カプセルの作成 | |
virtual GxObject * | createMesh (u32 index, b32 active, const GxMatrixAffine *pMatrix, const GxVector3 &offset, const GxShapeTrimesh &trimesh, btTriangleIndexVertexArray *pVertex, b32 isCompress=true, GxVector3 *pAabbMin=nullptr, GxVector3 *pAabbMax=nullptr) |
背景メッシュの作成 | |
virtual GxObject * | createMesh (u32 index, b32 active, const GxMatrixAffine *pMatrix, const GxVector3 &offset, const GxShapeTrimesh &trimesh, btBvhTriangleMeshShape *pTrimeshShape) |
背景メッシュの作成 | |
GxObject * | getObject (u32 index) |
指定インデックスのオブジェクトを取得 | |
virtual void | deleteObject (GxObject *pObject) |
オブジェクトを削除する | |
virtual void | detachObject (GxObject *pObject) |
オブジェクトをリストから切り離す | |
virtual void | prepareCheck (void) |
当たり判定チェック前準備 | |
virtual void | update (void) |
位置の更新 | |
constexpr GxWorld * | getWorld (void) const |
登録ワールドの取得 | |
constexpr GxUnitBase * | getUnit (void) const |
登録ユニットの取得 | |
virtual GX_FORCE_INLINE void | initializeActiveOn (void) |
アクティブON時のパラメタ初期化 | |
virtual GX_FORCE_INLINE void | initializeActiveOff (void) |
アクティブOFF時のパラメタ初期化 | |
virtual GX_FORCE_INLINE void | initializeUpdate (void) |
更新前のパラメタ初期化 | |
virtual void | executePostCheckCallback (void) |
チェック後コールバック関数の呼び出し | |
GX_FORCE_INLINE void | setHitCallback (GxCollision::COLLISION_CALLBACK pCallback) |
コールバックを設定 | |
GX_FORCE_INLINE b32 | isActive (void) const |
アクティブ判定 | |
void | setActive (b32 active) |
アクティブ状態の設定 | |
constexpr u32 | getObjectCount (void) const |
登録オブジェクトの個数を取得 | |
GX_FORCE_INLINE void | getPropertyActive (void *const pValue) |
アクティブを取得 | |
GX_FORCE_INLINE void | setPropertyActive (const void *const pValue) |
アクティブを設定 | |
GX_FORCE_INLINE void | getPropertyObject (void *const pValue, u32 index) |
当たりオブジェクトを取得 | |
constexpr void | setPropertyObject (const void *const, u32) |
当たりオブジェクトを設定 | |
constexpr u32 | getPropertyObjectCount (void) const |
当たりオブジェクト数を取得 | |
constexpr void | setPropertyObjectCount (u32) |
当たりオブジェクト数を設定 | |
![]() | |
constexpr | GxClassBase (void) |
コンストラクタ | |
constexpr | GxClassBase (const GxClassBase &base) |
コピーコンストラクタ | |
~GxClassBase (void) override | |
デストラクタ | |
![]() | |
constexpr | GxClassBaseRoot (void) |
コンストラクタ | |
constexpr | GxClassBaseRoot (const GxClassBaseRoot &) |
コピーコンストラクタ | |
virtual | ~GxClassBaseRoot (void) |
デストラクタ | |
constexpr GxClassBaseRoot & | operator= (const GxClassBaseRoot &) |
代入演算子 | |
virtual GxRtti & | getRtti (void) const =0 |
Rttiの取得 | |
virtual GX_FORCE_INLINE const GxTypedObject * | getDefaultObject (void) |
デフォルトオブジェクトを取得 | |
GX_FORCE_INLINE b32 | isDefaultObject (void) |
デフォルトオブジェクト判定 | |
Static Public Attributes | |
定義 | |
static const GxColor | COLOR_OBJECT |
描画色 | |
![]() | |
static const f32 | BULLET_MARGIN = CONVEX_DISTANCE_MARGIN |
Bulletのマージン値 | |
Protected Member Functions | |
アクセサ | |
constexpr GxClassBaseRoot * | getEventExecutant (void) const |
イベント実行者を取得 | |
constexpr void | setEventExecutant (GxClassBaseRoot *pEventExecutant) |
イベント実行者を設定 | |
![]() | |
constexpr void | setWorldNull (void) |
登録ワールドの削除 | |
GX_FORCE_INLINE void | setOffsetAdjustVector (const GxVector3 &offset) |
押返しベクトルのオフセットを設定 | |
GX_FORCE_INLINE GxVector3 | getOffsetAdjustVector (void) |
押返しベクトルのオフセットを取得 | |
操作 | |
GxCollision::GxObject * | allocObject (void) override |
オブジェクトのメモリ確保 | |
void | initialize (GxCollision::GxWorld *pRegisterWorld, GxUnitBase *pUnit, GxCollision::COLLISION_CALLBACK pCallback, u32 threadIndex) override |
初期設定 | |
GxCollision::GxObject * | addObject (void) override |
オブジェクトの追加 | |
Additional Inherited Members | |
![]() | |
enum class | COLLISION_SHAPE { ERROR_ = -1 , SPHERE = 0 , BOX , CYLINDER , MULTISPHERE , TRIMESH , PLANE , RAY , BEAM , CAPSULE , CONVEX , COMPOUND , WHEEL , MAX } |
コリジョン形状 More... | |
typedef void(GxClassBaseRoot::*) | COLLISION_CALLBACK(void) |
コールバック定義 | |
![]() | |
static GX_FORCE_INLINE GxRtti & | __getStaticRtti (void) |
Rttiの取得 | |
![]() | |
GxWorld * | _pRegisterWorld |
親ワールド | |
COLLISION_CALLBACK | _pCallback |
補正用コールバック | |
GxArrayClassBase | _listObject |
オブジェクトのリスト | |
イベントあたりクラス
|
overrideprotectedvirtual |
オブジェクトの追加
pWorld | [in] 登録先ワールドのアドレス |
Reimplemented from GxCollision.
|
overridevirtual |
|
overridevirtual |
初期設定
pRegisterWorld | [in] 登録先ワールド |
pUnit | [in] 使用するユニット |
pCallback | [in] 呼び出すコールバック関数 |
threadIndex | [in] スレッドインデックス |
Reimplemented from GxCollision.