diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index c6346a554..7c0a7ed9f 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -2313,6 +2313,18 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm dofIndex += mb->getLink(i).m_dofCount; } } + + btAlignedObjectArray scratch_q; + btAlignedObjectArray scratch_m; + + mb->forwardKinematics(scratch_q,scratch_m); + int nLinks = mb->getNumLinks(); + scratch_q.resize(nLinks+1); + scratch_m.resize(nLinks+1); + + mb->updateCollisionObjectWorldTransforms(scratch_q,scratch_m); + + } SharedMemoryStatus& serverCmd =serverStatusOut; diff --git a/test/enet/chat/client/main.cpp b/test/enet/chat/client/main.cpp index 59565f464..b7387fac1 100644 --- a/test/enet/chat/client/main.cpp +++ b/test/enet/chat/client/main.cpp @@ -119,8 +119,11 @@ int main(int argc, char* argv[]) { printf("Say> "); +#ifdef _WIN32 gets_s(message, 1024); - +#else + gets(message); +#endif if (strcmp(message, "exit") == 0 || strcmp(message, "quit") == 0) { break;