add Obj and STL import demo, work on URDF import
This commit is contained in:
@@ -33,6 +33,8 @@ struct GraphicsPhysicsBridge
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void setUpAxis(int axis)=0;
|
||||
|
||||
};
|
||||
|
||||
struct CommonPhysicsSetup
|
||||
|
||||
@@ -22,6 +22,8 @@ void ConstraintPhysicsSetup::stepSimulation(float deltaTime)
|
||||
|
||||
void ConstraintPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge)
|
||||
{
|
||||
gfxBridge.setUpAxis(1);
|
||||
|
||||
createEmptyDynamicsWorld();
|
||||
|
||||
gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld);
|
||||
|
||||
Reference in New Issue
Block a user