mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
03bf78ef49
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;
|
|
}
|
|
|