bullet3/examples/SharedMemory/PhysicsDirectC_API.cpp
erwincoumans 03bf78ef49 add physics server loopback (both client and server in the same process, using shared memory)
add physics server direct (client and server in the same process, directly processing commands without shared memory transport mechanism)
2015-11-22 20:50:32 -08:00

15 lines
295 B
C++

#include "PhysicsDirectC_API.h"
#include "PhysicsDirect.h"
//think more about naming. The b3ConnectPhysicsLoopback
b3PhysicsClientHandle b3ConnectPhysicsDirect()
{
PhysicsDirect* direct = new PhysicsDirect();
bool connected = direct->connect();
return (b3PhysicsClientHandle )direct;
}