add physics server direct (client and server in the same process, directly processing commands without shared memory transport mechanism)
15 lines
295 B
C++
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;
|
|
}
|
|
|