Last change
on this file since 1698 was
1698,
checked in by touky, 8 years ago
|
Lazy WE :
Small tweaks in the BtPhysTest demo.
Added Ghost Object skeleton (not tested)
|
File size:
1.3 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 |
|
---|
27 | lol::phys::Simulation* m_simulation;
|
---|
28 | Array<EasyConstraint*> m_constraint_list;
|
---|
29 | Array<PhysicsObject*> m_physobj_list;
|
---|
30 | Array<PhysicsObject*> m_ground_list;
|
---|
31 | Array<PhysicsObject*> m_platform_list;
|
---|
32 |
|
---|
33 | #if 0
|
---|
34 | EasyMesh m_ground_mesh;
|
---|
35 | EasyMesh m_rigid_mesh[6];
|
---|
36 |
|
---|
37 | //Bullet Physics Datas
|
---|
38 | enum
|
---|
39 | {
|
---|
40 | USE_CCD=1,
|
---|
41 | USE_NO_CCD
|
---|
42 | };
|
---|
43 | int m_bt_ccd_mode;
|
---|
44 | btDefaultCollisionConfiguration* m_bt_collision_config;
|
---|
45 | btCollisionDispatcher* m_bt_dispatcher;
|
---|
46 | btDbvtBroadphase* m_bt_broadphase;
|
---|
47 | btSequentialImpulseConstraintSolver* m_bt_solver;
|
---|
48 | btDiscreteDynamicsWorld* m_bt_world;
|
---|
49 | Array<btCollisionShape*> m_bt_collision_shapes;
|
---|
50 | Array<btCollisionShape*> m_bt_dynamic_shapes;
|
---|
51 | #endif
|
---|
52 | };
|
---|
53 |
|
---|
54 | #endif // __BTPHYSTEST_H__
|
---|
55 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.