2015-11-23 04:50:32 +00:00
|
|
|
#include "PhysicsDirectC_API.h"
|
|
|
|
|
|
|
|
#include "PhysicsDirect.h"
|
|
|
|
|
2016-11-04 20:15:10 +00:00
|
|
|
#include "PhysicsServerCommandProcessor.h"
|
|
|
|
|
2015-11-23 04:50:32 +00:00
|
|
|
//think more about naming. The b3ConnectPhysicsLoopback
|
2018-09-23 21:17:31 +00:00
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3ConnectPhysicsDirect()
|
2015-11-23 04:50:32 +00:00
|
|
|
{
|
2016-11-04 20:15:10 +00:00
|
|
|
PhysicsServerCommandProcessor* sdk = new PhysicsServerCommandProcessor;
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
PhysicsDirect* direct = new PhysicsDirect(sdk, true);
|
2017-01-16 06:26:11 +00:00
|
|
|
bool connected;
|
|
|
|
connected = direct->connect();
|
2018-09-23 21:17:31 +00:00
|
|
|
return (b3PhysicsClientHandle)direct;
|
2015-11-23 04:50:32 +00:00
|
|
|
}
|
|
|
|
|
2016-11-04 20:15:10 +00:00
|
|
|
//
|