b3PhysicsClientHandle b3ConnectSharedMemory(int key) { PhysicsClientSharedMemory* cl = new PhysicsClientSharedMemory(); ///client should never create shared memory, only the server does cl->setSharedMemoryKey(key); cl->connect(); return (b3PhysicsClientHandle ) cl; }
virtual void setSharedMemoryKey(int key) { m_physicsClient.setSharedMemoryKey(key); }