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:
19
examples/SharedMemory/PhysicsClientSharedMemory2_C_API.cpp
Normal file
19
examples/SharedMemory/PhysicsClientSharedMemory2_C_API.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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);
|
||||
|
||||
cl->setSharedMemoryKey(key);
|
||||
|
||||
cl->connect();
|
||||
|
||||
return (b3PhysicsClientHandle)cl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user