remove btMultiSapBroadphase.* make collisionFilterGroup/collisionFilterMark int (instead of short int)
23 lines
505 B
C++
23 lines
505 B
C++
|
|
#include "PhysicsClientUDP_C_API.h"
|
|
#include "PhysicsClientUDP.h"
|
|
#include "PhysicsDirect.h"
|
|
#include <stdio.h>
|
|
|
|
//think more about naming. The b3ConnectPhysicsLoopback
|
|
b3PhysicsClientHandle b3ConnectPhysicsUDP(const char* hostName, int port)
|
|
{
|
|
|
|
UdpNetworkedPhysicsProcessor* udp = new UdpNetworkedPhysicsProcessor(hostName, port);
|
|
|
|
PhysicsDirect* direct = new PhysicsDirect(udp,true);
|
|
|
|
bool connected;
|
|
connected = direct->connect();
|
|
printf("direct!\n");
|
|
return (b3PhysicsClientHandle)direct;
|
|
}
|
|
|
|
|
|
|