2019-01-23 05:08:37 +00:00
|
|
|
#ifdef BT_ENABLE_PHYSX
|
|
|
|
#include "PhysXC_API.h"
|
2019-02-21 03:57:10 +00:00
|
|
|
#include "../PhysicsDirect.h"
|
2019-01-23 05:08:37 +00:00
|
|
|
#include "PhysXServerCommandProcessor.h"
|
2019-02-21 03:57:10 +00:00
|
|
|
|
2019-01-23 05:08:37 +00:00
|
|
|
|
2019-02-22 03:24:18 +00:00
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3ConnectPhysX(int argc, char* argv[])
|
2019-01-23 05:08:37 +00:00
|
|
|
{
|
2019-02-22 03:24:18 +00:00
|
|
|
PhysXServerCommandProcessor* sdk = new PhysXServerCommandProcessor(argc,argv);
|
2019-01-23 05:08:37 +00:00
|
|
|
|
2019-02-21 03:57:10 +00:00
|
|
|
PhysicsDirect* direct = new PhysicsDirect(sdk, true);
|
2019-01-23 05:08:37 +00:00
|
|
|
bool connected;
|
|
|
|
connected = direct->connect();
|
|
|
|
return (b3PhysicsClientHandle)direct;
|
|
|
|
}
|
|
|
|
#endif //BT_ENABLE_PHYSX
|