From 66bfb7e7086e57066ca829bce184913e8987ccee Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Mon, 25 Apr 2016 09:37:04 -0700 Subject: [PATCH] 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]; }