-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimulator.h
More file actions
24 lines (21 loc) · 720 Bytes
/
Copy pathSimulator.h
File metadata and controls
24 lines (21 loc) · 720 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
#pragma once
#include <Ogre.h>
#include <btBulletDynamicsCommon.h>
class GameObject;
class Simulator{
protected:
btDefaultCollisionConfiguration* collisionConfig;
btCollisionDispatcher* dispatcher;
btBroadphaseInterface* broadphase;
btSequentialImpulseConstraintSolver* solver;
btDiscreteDynamicsWorld* dynamicsWorld; //inherits from CollisionWorld
btConstraintSolver* mConstraintsolver;
Ogre::SceneManager* sceneMgr;
std::deque<GameObject*> objList;
public:
Simulator();
void stepSimulation(const Ogre::Real elapsedTime, int maxSubSteps, const Ogre::Real fixedTimestep);
bool checkHit(int o);
btDiscreteDynamicsWorld* getWorld();
void addObject(GameObject* o);
};