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
|
2017-09-21 23:40:19 +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;
|
|
|
|
|
2017-01-10 22:57:16 +00:00
|
|
|
PhysicsDirect* direct = new PhysicsDirect(sdk,true);
|
2017-01-16 06:26:11 +00:00
|
|
|
bool connected;
|
|
|
|
connected = direct->connect();
|
2015-11-23 04:50:32 +00:00
|
|
|
return (b3PhysicsClientHandle )direct;
|
|
|
|
}
|
|
|
|
|
2016-11-04 20:15:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|