add improved btGeneric6DofSpring2Constraint, thanks to Puhr Gabor and Tamas Umenhoffer!
improved the new demo testbed (work-in-progress) add basic Lua demo, import URDF test, STL import, obj import
This commit is contained in:
@@ -36,6 +36,8 @@ struct CommonParameterInterface
|
||||
virtual void registerSliderFloatParameter(SliderParams& params)=0;
|
||||
virtual void syncParameters()=0;
|
||||
virtual void removeAllParameters()=0;
|
||||
virtual void setSliderValue(int sliderIndex, double sliderValue)=0;
|
||||
|
||||
};
|
||||
|
||||
#endif //PARAM_INTERFACE_H
|
||||
|
||||
21
Demos/SerializeDemo/SerializeSetup.cpp
Normal file
21
Demos/SerializeDemo/SerializeSetup.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "SerializeSetup.h"
|
||||
#include "../Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.h"
|
||||
|
||||
SerializeSetup::SerializeSetup()
|
||||
{
|
||||
|
||||
}
|
||||
SerializeSetup::~SerializeSetup()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void SerializeSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge)
|
||||
{
|
||||
this->createEmptyDynamicsWorld();
|
||||
gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld);
|
||||
m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe);
|
||||
btBulletWorldImporter* importer = new btBulletWorldImporter(m_dynamicsWorld);
|
||||
const char* filename = "testFile.bullet";
|
||||
importer->loadFile(filename);
|
||||
}
|
||||
14
Demos/SerializeDemo/SerializeSetup.h
Normal file
14
Demos/SerializeDemo/SerializeSetup.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef SERIALIZE_SETUP_H
|
||||
#define SERIALIZE_SETUP_H
|
||||
#include "../../Demos/CommonRigidBodySetup.h"
|
||||
|
||||
class SerializeSetup : public CommonRigidBodySetup
|
||||
{
|
||||
public:
|
||||
SerializeSetup();
|
||||
virtual ~SerializeSetup();
|
||||
|
||||
virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge);
|
||||
};
|
||||
|
||||
#endif //SERIALIZE_SETUP_H
|
||||
Reference in New Issue
Block a user