work-in-progress
add UDP network connection for physics client <-> server. also set spinning friction in rolling friction demo (otherwise objects may keep on spinning forever)
This commit is contained in:
11
examples/SharedMemory/PhysicsClientSharedMemory_C_API.cpp
Normal file
11
examples/SharedMemory/PhysicsClientSharedMemory_C_API.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "PhysicsClientSharedMemory_C_API.h"
|
||||
|
||||
#include "PhysicsClientSharedMemory.h"
|
||||
|
||||
b3PhysicsClientHandle b3ConnectSharedMemory(int key)
|
||||
{
|
||||
PhysicsClientSharedMemory* cl = new PhysicsClientSharedMemory();
|
||||
cl->setSharedMemoryKey(key);
|
||||
cl->connect();
|
||||
return (b3PhysicsClientHandle)cl;
|
||||
}
|
||||
Reference in New Issue
Block a user