First checkin of core ODE functionality. See OdePhysicsController.cpp for a todo list.

This commit is contained in:
Norman Lin
2002-10-18 14:36:34 +00:00
parent 40a078a36d
commit 1b15961786
11 changed files with 49 additions and 25 deletions

View File

@@ -43,12 +43,13 @@
#include "DummyPhysicsEnvironment.h"
//to decide to use sumo/ode or dummy physics - defines USE_ODE
#include "KX_ConvertPhysicsObject.h"
#ifdef USE_ODE
#include "OdePhysicsEnvironment.h"
#endif //USE_ODE
//to decide to use sumo/ode or dummy physics
#include "KX_ConvertPhysicsObject.h"
#ifdef USE_SUMO_SOLID
#include "SumoPhysicsEnvironment.h"
#endif
@@ -181,24 +182,29 @@ void KX_BlenderSceneConverter::ConvertScene(const STR_String& scenename,
switch (blenderscene->world->pad1)
{
case 4:
{
physics_engine = UseODE;
break;
}
case 5:
{
physics_engine = UseDynamo;
break;
}
case 7:
case 1:
{
physics_engine = UseNone;
break;
};
default:
case 2:
{
physics_engine = UseSumo;
break;
}
case 3:
{
physics_engine = UseODE;
break;
}
case 4:
{
physics_engine = UseDynamo;
break;
}
default:
{
physics_engine = UseODE;
}
}
}