Update PhysicsClientC_API.cpp

fix a copy/paste bug -> pos+quat = 7, but pos is just 3
This commit is contained in:
erwincoumans
2016-04-25 09:37:04 -07:00
parent 190622ed9e
commit 66bfb7e708

View File

@@ -230,7 +230,7 @@ void b3GetLinkState(b3PhysicsClientHandle physClient, b3SharedMemoryStatusHandle
b3Assert(bodyIndex>=0); b3Assert(bodyIndex>=0);
if (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]; state->m_worldPosition[i] = status->m_sendActualStateArgs.m_linkState[7 * linkIndex + i];
} }