2015-05-02 04:34:27 +00:00
|
|
|
#ifndef CONCAVE_SCENE_H
|
|
|
|
#define CONCAVE_SCENE_H
|
|
|
|
|
|
|
|
#include "GpuRigidBodyDemo.h"
|
|
|
|
#include "Bullet3Common/b3Vector3.h"
|
|
|
|
|
|
|
|
class ConcaveScene : public GpuRigidBodyDemo
|
|
|
|
{
|
|
|
|
public:
|
2018-09-23 21:17:31 +00:00
|
|
|
ConcaveScene() {}
|
|
|
|
virtual ~ConcaveScene() {}
|
2015-05-02 04:34:27 +00:00
|
|
|
virtual const char* getName()
|
|
|
|
{
|
|
|
|
return "BoxTrimesh";
|
|
|
|
}
|
|
|
|
|
|
|
|
static GpuDemo* MyCreateFunc()
|
|
|
|
{
|
|
|
|
GpuDemo* demo = new ConcaveScene;
|
|
|
|
return demo;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void setupScene(const ConstructionInfo& ci);
|
|
|
|
|
|
|
|
virtual void createDynamicObjects(const ConstructionInfo& ci);
|
|
|
|
|
|
|
|
virtual void createConcaveMesh(const ConstructionInfo& ci, const char* fileName, const b3Vector3& shift, const b3Vector3& scaling);
|
|
|
|
};
|
|
|
|
|
|
|
|
class ConcaveSphereScene : public ConcaveScene
|
|
|
|
{
|
|
|
|
public:
|
2018-09-23 21:17:31 +00:00
|
|
|
ConcaveSphereScene() {}
|
|
|
|
virtual ~ConcaveSphereScene() {}
|
2015-05-02 04:34:27 +00:00
|
|
|
virtual const char* getName()
|
|
|
|
{
|
|
|
|
return "SphereTrimesh";
|
|
|
|
}
|
|
|
|
|
|
|
|
static GpuDemo* MyCreateFunc()
|
|
|
|
{
|
|
|
|
GpuDemo* demo = new ConcaveSphereScene;
|
|
|
|
return demo;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void setupScene(const ConstructionInfo& ci);
|
|
|
|
|
|
|
|
virtual void createDynamicObjects(const ConstructionInfo& ci);
|
|
|
|
};
|
|
|
|
|
|
|
|
class ConcaveCompoundScene : public ConcaveScene
|
|
|
|
{
|
|
|
|
public:
|
2018-09-23 21:17:31 +00:00
|
|
|
ConcaveCompoundScene() {}
|
|
|
|
virtual ~ConcaveCompoundScene() {}
|
2015-05-02 04:34:27 +00:00
|
|
|
virtual const char* getName()
|
|
|
|
{
|
|
|
|
return "CompoundConcave";
|
|
|
|
}
|
|
|
|
|
|
|
|
static GpuDemo* MyCreateFunc()
|
|
|
|
{
|
|
|
|
GpuDemo* demo = new ConcaveCompoundScene;
|
|
|
|
return demo;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void setupScene(const ConstructionInfo& ci);
|
|
|
|
|
|
|
|
virtual void createDynamicObjects(const ConstructionInfo& ci);
|
|
|
|
};
|
|
|
|
|
|
|
|
class ConcaveCompound2Scene : public ConcaveCompoundScene
|
|
|
|
{
|
|
|
|
public:
|
2018-09-23 21:17:31 +00:00
|
|
|
ConcaveCompound2Scene() {}
|
|
|
|
virtual ~ConcaveCompound2Scene() {}
|
2015-05-02 04:34:27 +00:00
|
|
|
virtual const char* getName()
|
|
|
|
{
|
|
|
|
return "GRBConcave2Compound";
|
|
|
|
}
|
|
|
|
|
|
|
|
static GpuDemo* MyCreateFunc()
|
|
|
|
{
|
|
|
|
GpuDemo* demo = new ConcaveCompound2Scene;
|
|
|
|
return demo;
|
|
|
|
}
|
|
|
|
virtual void createDynamicObjects(const ConstructionInfo& ci);
|
|
|
|
};
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //CONCAVE_SCENE_H
|