Last change
on this file since 1722 was
1722,
checked in by touky, 9 years ago
|
LocalInertia error FIX.
Character integration better but still not working.
|
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 | Array<PhysicsObject*> m_character_list;
|
---|
33 |
|
---|
34 | #if 0
|
---|
35 | EasyMesh m_ground_mesh;
|
---|
36 | EasyMesh m_rigid_mesh[6];
|
---|
37 |
|
---|
38 | //Bullet Physics Datas
|
---|
39 | enum
|
---|
40 | {
|
---|
41 | USE_CCD=1,
|
---|
42 | USE_NO_CCD
|
---|
43 | };
|
---|
44 | int m_bt_ccd_mode;
|
---|
45 | btDefaultCollisionConfiguration* m_bt_collision_config;
|
---|
46 | btCollisionDispatcher* m_bt_dispatcher;
|
---|
47 | btDbvtBroadphase* m_bt_broadphase;
|
---|
48 | btSequentialImpulseConstraintSolver* m_bt_solver;
|
---|
49 | btDiscreteDynamicsWorld* m_bt_world;
|
---|
50 | Array<btCollisionShape*> m_bt_collision_shapes;
|
---|
51 | Array<btCollisionShape*> m_bt_dynamic_shapes;
|
---|
52 | #endif
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif // __BTPHYSTEST_H__
|
---|
56 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.