Last change
on this file since 1554 was
1554,
checked in by touky, 9 years ago
|
Added Location modifier in URO.
Added BtPhystest for Bullet Physics test project.
|
File size:
1.0 KB
|
Line | |
---|
1 | // |
---|
2 | // BtPhysTest |
---|
3 | // |
---|
4 | // Copyright: (c) 2009-2012 Benjamin Huet <huet.benjamin@gmail.com> |
---|
5 | // (c) 2012 Sam Hocevar <sam@hocevar.net> |
---|
6 | // |
---|
7 | |
---|
8 | #if !defined __BTPHYSTEST_H__ |
---|
9 | #define __BTPHYSTEST_H__ |
---|
10 | |
---|
11 | class BtPhysTest : public WorldEntity |
---|
12 | { |
---|
13 | public: |
---|
14 | BtPhysTest(bool editor = false); |
---|
15 | virtual ~BtPhysTest(); |
---|
16 | |
---|
17 | char const *GetName() { return "<BtPhysTest>"; } |
---|
18 | |
---|
19 | protected: |
---|
20 | virtual void TickGame(float seconds); |
---|
21 | virtual void TickDraw(float seconds); |
---|
22 | |
---|
23 | private: |
---|
24 | Camera* m_camera; |
---|
25 | bool m_ready; |
---|
26 | EasyMesh m_ground_mesh; |
---|
27 | EasyMesh m_rigid_mesh; |
---|
28 | |
---|
29 | //Bullet Physics Datas |
---|
30 | enum
|
---|
31 | {
|
---|
32 | USE_CCD=1,
|
---|
33 | USE_NO_CCD
|
---|
34 | };
|
---|
35 | int m_bt_ccd_mode;
|
---|
36 | btDefaultCollisionConfiguration* m_bt_collision_config; |
---|
37 | btCollisionDispatcher* m_bt_dispatcher; |
---|
38 | btDbvtBroadphase* m_bt_broadphase; |
---|
39 | btSequentialImpulseConstraintSolver* m_bt_solver; |
---|
40 | btDiscreteDynamicsWorld* m_bt_world; |
---|
41 | Array<btCollisionShape*> m_bt_collision_shapes;
|
---|
42 | Array<btCollisionShape*> m_bt_dynamic_shapes;
|
---|
43 | }; |
---|
44 | |
---|
45 | #endif // __BTPHYSTEST_H__ |
---|
46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.