mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 21:30:09 +00:00
71b1191947
add command-line args for PhysX (numCores=..., solver=tgs, )
16 lines
448 B
C++
16 lines
448 B
C++
#ifdef BT_ENABLE_PHYSX
|
|
#include "PhysXC_API.h"
|
|
#include "../PhysicsDirect.h"
|
|
#include "PhysXServerCommandProcessor.h"
|
|
|
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3ConnectPhysX(int argc, char* argv[])
|
|
{
|
|
PhysXServerCommandProcessor* sdk = new PhysXServerCommandProcessor(argc,argv);
|
|
|
|
PhysicsDirect* direct = new PhysicsDirect(sdk, true);
|
|
bool connected;
|
|
connected = direct->connect();
|
|
return (b3PhysicsClientHandle)direct;
|
|
}
|
|
#endif //BT_ENABLE_PHYSX
|