mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 22:00:05 +00:00
9708392322
add UDP network connection for physics client <-> server. also set spinning friction in rolling friction demo (otherwise objects may keep on spinning forever)
12 lines
290 B
C++
12 lines
290 B
C++
#include "PhysicsClientSharedMemory_C_API.h"
|
|
|
|
#include "PhysicsClientSharedMemory.h"
|
|
|
|
b3PhysicsClientHandle b3ConnectSharedMemory(int key)
|
|
{
|
|
PhysicsClientSharedMemory* cl = new PhysicsClientSharedMemory();
|
|
cl->setSharedMemoryKey(key);
|
|
cl->connect();
|
|
return (b3PhysicsClientHandle)cl;
|
|
}
|