OROCHI
 
Loading...
Searching...
No Matches
GxPhysics.h
Go to the documentation of this file.
1//===========================================================================
12//===========================================================================
13#pragma once
14
15#define PLATFORM_BULLET_SUPPORT 1
16#if defined(_WINDOWS)
17#define PLATFORM_PHYSX_SUPPORT 1
18#else //_WINDOWS
19#define PLATFORM_PHYSX_SUPPORT 0
20#endif // !_WINDOWS
21
22// ビークルを利用するかどうか
23#define USE_VEHICLE 0
24
25//---------------------------------------------------------------------------
27//---------------------------------------------------------------------------
28#define GX_PHYSICS_NAMESPACE_BEGIN() namespace gx{namespace physics{
29#define GX_PHYSICS_NAMESPACE_END() }}
30
31//---------------------------------------------------------------------------
33//---------------------------------------------------------------------------
34#define GX_PHYSICS_EPSILON FLT_EPSILON
35#define GX_PHYSICS_EPSILON2 (FLT_EPSILON * FLT_EPSILON)
36
37//---------------------------------------------------------------------------
38// 外部ライブラリ読み込み
39//---------------------------------------------------------------------------
40#include "Gx.h"
41#include "GxShader.h"
43using namespace ::gx::core;
44using namespace ::gx::shader;
45GX_PHYSICS_NAMESPACE_END()
46
47#if PLATFORM_BULLET_SUPPORT
48#if defined(_PS4) || defined(_NX64)
49// btBulletCollisionCommon.h 警告抑制
50#pragma clang diagnostic push
51#pragma clang diagnostic ignored "-Wunused-variable"
52#pragma clang diagnostic ignored "-Wunused-private-field"
53#pragma clang diagnostic ignored "-Wshift-negative-value"
54#endif // _PS4 || _NX64
55
56#if _MSC_VER >= 1900
57#pragma warning(disable:4127)
58#pragma warning(disable:4302)
59#pragma warning(disable:4819)
60#endif //_MSC_VER >= 1900
61
62#include "btBulletCollisionCommon.h"
63#include "btBulletDynamicsCommon.h"
64
65#if _MSC_VER >= 1900
66#pragma warning(default:4127)
67#pragma warning(default:4302)
68#pragma warning(default:4819)
69#endif //_MSC_VER >= 1900
70
71#if defined(_PS4) || defined(_NX64)
72#pragma clang diagnostic pop
73#endif // _PS4 || _NX64
74#endif //PLATFORM_BULLET_SUPPORT
75
76#if defined(_WINDOWS)
77// note:仮でNxのファイル読み込み
78#define __APPLE__ 0
79#define __CELLOS_LV2__ 0
80#endif // _WINDOWS
81
82#if defined(_WINDOWS)
83#pragma warning(push)
84#pragma warning(disable:4512) // ワーニングを消す
85#endif //_WINDOWS
86
87#if PLATFORM_PHYSX_SUPPORT
88#include "PxPhysics.h"
89using namespace physx;
90#endif //PLATFORM_PHYSX_SUPPORT
91
92#if defined(_WINDOWS)
93#pragma warning(pop)
94#endif //_WINDOWS
95
96//---------------------------------------------------------------------------
97// モジュール
98//---------------------------------------------------------------------------
99#include "GxCollision.h"
100#include "GxAttackHit.h"
101#include "GxAdjustHit.h"
102#include "GxObjectHit.h"
103#include "GxBackgroundHit.h"
104#include "GxEventHit.h"
105#include "GxDynamics.h"
109
110//---------------------------------------------------------------------------
111// システム
112//---------------------------------------------------------------------------
113#include "GxSysCollision.h"
114#include "GxSysDynamics.h"
115
116//---------------------------------------------------------------------------
117// リソース
118//---------------------------------------------------------------------------
119#include "GxResCollisionObject.h"
120#include "GxResCollisionMesh.h"
122#include "GxResHitFlagPreset.h"
123#if GX_DEVELOP
127#endif //GX_DEVELOP
128
129//---------------------------------------------------------------------------
130// ユニット
131//---------------------------------------------------------------------------
132#include "GxUnitBackgroundBase.h"
133
134#if GX_DEVELOP
135//---------------------------------------------------------------------------
136// ツール
137//---------------------------------------------------------------------------
138#include "GxToolCollisionSet.h"
139#include "GxToolHitFlagPreset.h"
142#include "GxToolTong.h"
143#endif // GX_DEVELOP
144
145#if PLATFORM_PHYSX_SUPPORT
151#endif //PLATFORM_PHYSX_SUPPORT
152
153#if PLATFORM_BULLET_SUPPORT
157#endif //PLATFORM_BULLET_SUPPORT
158
159//---------------------------------------------------------------------------
160// usage宣言
161//---------------------------------------------------------------------------
163extern void GxPhysicsUsage(void);
164GX_PHYSICS_NAMESPACE_END()
コアインクルードヘッダ
補正あたりクラス
攻撃当たりクラス
背景あたりクラス
衝突判定関連モジュールクラス
BULLETのコリジョン判定拡張クラス
BULLETのコリジョン判定拡張クラス - Dynamics.
物理演算クラス
Bullet用物理演算クラス
PhysX用物理演算クラス
イベントあたりクラス
コリジョンセットモジュールクラス
Nx用ストリームリーダ&ライタ
Nx用アロケータ
オブジェクトあたりクラス
#define GX_PHYSICS_NAMESPACE_BEGIN()
ネームスペースマクロ
Definition GxPhysics.h:28
ヒットフラグ設定リソースクラス
メッシュコリジョンリソース
COLLADAメッシュコリジョンリソース
FBXメッシュコリジョンリソース
オブジェコリジョンリソース
ヒットフラグのプリセットリソース
背景コリジョン編集ツール用のリソースクラス
コアインクルードファイル
コリジョンシステムクラス
物理演算システムクラス
Bullet用物理演算システムクラス
PhysX用物理演算システムクラス
背景コリジョンのヒットフラグ付けツール
コリジョン付けツール
コリジョンビューアーツール
背景コリジョンのヒットフラグプリセット作成ツール
物理用トングツール
Bullet物理用トングツール
PhysX物理用トングツール
背景ユニット基底クラス