enable URDF loading throught the 'File/Open' menu

set a default camera targets for each demo. note that it is only reset when switching to a different demo, so you can restart at your chosen location.
no OpenCL pairbench drawing in OpenGL2 (there is no VBO available etc)
This commit is contained in:
erwincoumans
2015-05-01 11:42:14 -07:00
parent 3dd41b84a8
commit 218e9f9bf9
66 changed files with 562 additions and 217 deletions

View File

@@ -56,6 +56,14 @@ public:
return false;
}
virtual void resetCamera()
{
float dist = 10;
float pitch = 62;
float yaw = 33;
float targetPos[3]={-3,2.4,-3.6};
m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]);
}
};
@@ -64,6 +72,7 @@ public:
void ImplicitClothExample::initPhysics()
{
float size=10;
m_guiHelper->setUpAxis(1);
m_cloth = ClothCreate(numX,numY,size);
}
@@ -114,7 +123,7 @@ void ImplicitClothExample::physicsDebugDraw(int debugFlags)
}
class CommonExampleInterface* ImplicitClothCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option)
class CommonExampleInterface* ImplicitClothCreateFunc(struct CommonExampleOptions& options)
{
return new ImplicitClothExample(helper, option);
return new ImplicitClothExample(options.m_guiHelper, options.m_option);
}

View File

@@ -1,7 +1,7 @@
#ifndef IMPLICIT_CLOTH_EXAMPLE_H
#define IMPLICIT_CLOTH_EXAMPLE_H
class CommonExampleInterface* ImplicitClothCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option);
class CommonExampleInterface* ImplicitClothCreateFunc(struct CommonExampleOptions& options);
#endif //IMPLICIT_CLOTH_EXAMPLE_H