32 lines
545 B
C++
32 lines
545 B
C++
#ifndef CHAIN_DEMO_H
|
|
#define CHAIN_DEMO_H
|
|
|
|
#include "LinearMath/btVector3.h"
|
|
#include "Bullet3AppSupport/Bullet2RigidBodyDemo.h"
|
|
|
|
|
|
|
|
class ChainDemo : public Bullet2RigidBodyDemo
|
|
{
|
|
|
|
public:
|
|
|
|
static BulletDemoInterface* MyCreateFunc(CommonGraphicsApp* app)
|
|
{
|
|
return new ChainDemo(app);
|
|
}
|
|
|
|
ChainDemo(CommonGraphicsApp* app);
|
|
virtual ~ChainDemo();
|
|
|
|
void createGround(int cubeShapeId);
|
|
|
|
virtual void initPhysics();
|
|
virtual void exitPhysics();
|
|
virtual void renderScene();
|
|
virtual void stepSimulation(float dt);
|
|
};
|
|
|
|
|
|
#endif //CHAIN_DEMO_H
|