diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index e60828649..50bb4adef 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -5403,7 +5403,7 @@ bool PhysicsServerCommandProcessor::processRequestRaycastIntersectionsCommand(co int linkIndex = -1; if (bodyHandle->m_multiBody) { - int linkIndex = clientCmd.m_userDebugDrawArgs.m_parentLinkIndex; + int linkIndex = clientCmd.m_requestRaycastIntersections.m_parentLinkIndex; if (linkIndex == -1) { tr = bodyHandle->m_multiBody->getBaseWorldTransform();