Update PhysicsClientC_API.cpp
fix a copy/paste bug -> pos+quat = 7, but pos is just 3
This commit is contained in:
@@ -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];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user