-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathobject.h
More file actions
37 lines (32 loc) · 840 Bytes
/
Copy pathobject.h
File metadata and controls
37 lines (32 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __BMOD_OBJECT__
#define __BMOD_OBJECT__
#include <stdio.h>
#include <btBulletDynamicsCommon.h>
#include <list>
extern btDiscreteDynamicsWorld* g_bt_dynamicsWorld;
class bmodObject {
private:
btRigidBody* rigidBody;
btCollisionShape* shape;
std::list<int> entities;
public:
bmodObject(const char * model, float mass);
std::list<int> * getEntities();
int assignEntity(int entity);
int removeEntity(int entity);
void setMass(float mass);
btRigidBody* getRigidBody();
void update();
void registerIndex(int index);
~bmodObject();
};
class bmodMotionState : public btMotionState {
public:
bmodMotionState(bmodObject * obj);
virtual ~bmodMotionState();
virtual void getWorldTransform(btTransform &worldTrans) const;
virtual void setWorldTransform(const btTransform &worldTrans);
protected:
bmodObject * obj;
};
#endif