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
|
|
|
|
b3PhysicsClientHandle b3ConnectPhysicsDirect()
|
|
|
|
{
|
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);
|
2015-11-23 04:50:32 +00:00
|
|
|
bool connected = direct->connect();
|
|
|
|
return (b3PhysicsClientHandle )direct;
|
|
|
|
}
|
|
|
|
|
2016-11-04 20:15:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|