Create a PhysicsLoopBack that includes both PhysicsClient and PhysicsServer over shared memory.

Add a test for PhysicsLoopBack.
This commit is contained in:
erwincoumans
2015-10-26 17:56:21 -07:00
parent e779bb247b
commit 57f50f1778
8 changed files with 306 additions and 34 deletions

View File

@@ -0,0 +1,15 @@
#include "PhysicsLoopBackC_API.h"
#include "PhysicsLoopBack.h"
//think more about naming. The b3ConnectPhysicsLoopback
b3PhysicsClientHandle b3ConnectPhysicsLoopback(int key)
{
PhysicsLoopBack* loopBack = new PhysicsLoopBack();
loopBack->setSharedMemoryKey(key);
bool connected = loopBack->connect();
return (b3PhysicsClientHandle )loopBack;
}