From 66bfb7e7086e57066ca829bce184913e8987ccee Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Mon, 25 Apr 2016 09:37:04 -0700 Subject: [PATCH 1/2] Update PhysicsClientC_API.cpp fix a copy/paste bug -> pos+quat = 7, but pos is just 3 --- examples/SharedMemory/PhysicsClientC_API.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SharedMemory/PhysicsClientC_API.cpp b/examples/SharedMemory/PhysicsClientC_API.cpp index b11c5ca65..809413c16 100644 --- a/examples/SharedMemory/PhysicsClientC_API.cpp +++ b/examples/SharedMemory/PhysicsClientC_API.cpp @@ -230,7 +230,7 @@ void b3GetLinkState(b3PhysicsClientHandle physClient, b3SharedMemoryStatusHandle b3Assert(bodyIndex>=0); if (bodyIndex>=0) { - for (int i = 0; i < 7; ++i) + for (int i = 0; i < 3; ++i) { state->m_worldPosition[i] = status->m_sendActualStateArgs.m_linkState[7 * linkIndex + i]; } From a080a568f2497db083772c882a1ee0f11c6f7073 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Mon, 25 Apr 2016 09:42:16 -0700 Subject: [PATCH 2/2] Update main.cpp remove unused variable --- examples/SimpleOpenGL3/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/SimpleOpenGL3/main.cpp b/examples/SimpleOpenGL3/main.cpp index 300dfa79e..604eb3920 100644 --- a/examples/SimpleOpenGL3/main.cpp +++ b/examples/SimpleOpenGL3/main.cpp @@ -85,7 +85,6 @@ int main(int argc, char* argv[]) myArgs.GetCmdLineArgument("png_file",gPngFileName); char fileName[1024]; - int textureIndex = -1; int textureWidth = 128; int textureHeight = 128;