mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 22:00:05 +00:00
20 lines
427 B
C++
20 lines
427 B
C++
#include "PhysicsClientSharedMemory2_C_API.h"
|
|
|
|
#include "PhysicsDirect.h"
|
|
#include "SharedMemoryCommandProcessor.h"
|
|
|
|
b3PhysicsClientHandle b3ConnectSharedMemory2(int key)
|
|
{
|
|
|
|
SharedMemoryCommandProcessor* cmdProc = new SharedMemoryCommandProcessor();
|
|
cmdProc->setSharedMemoryKey(key);
|
|
PhysicsDirect* cl = new PhysicsDirect(cmdProc,true);
|
|
|
|
cl->setSharedMemoryKey(key);
|
|
|
|
cl->connect();
|
|
|
|
return (b3PhysicsClientHandle)cl;
|
|
}
|
|
|