experiment with Midi controls in PairBenchmark to tune variables (will move it into a utility class, so every demo can easier use it in the future) fix issue with broadphase, not initializing all pairs properly at pair array overflow
32 lines
525 B
C++
32 lines
525 B
C++
#ifndef BASIC_DEMO_H
|
|
#define BASIC_DEMO_H
|
|
|
|
#include "LinearMath/btVector3.h"
|
|
#include "Bullet2RigidBodyDemo.h"
|
|
|
|
|
|
|
|
class BasicDemo : public Bullet2RigidBodyDemo
|
|
{
|
|
|
|
public:
|
|
|
|
static BulletDemoInterface* MyCreateFunc(SimpleOpenGL3App* app)
|
|
{
|
|
return new BasicDemo(app);
|
|
}
|
|
|
|
BasicDemo(SimpleOpenGL3App* app);
|
|
virtual ~BasicDemo();
|
|
|
|
void createGround(int cubeShapeId);
|
|
|
|
virtual void initPhysics();
|
|
virtual void exitPhysics();
|
|
virtual void renderScene();
|
|
virtual void stepSimulation(float dt);
|
|
};
|
|
|
|
|
|
#endif //BASIC_DEMO_H
|