Merge pull request #2132 from Pandhariix/master

Retrieve rayTestBatch data without having to display debug lines
This commit is contained in:
erwincoumans
2019-02-28 10:20:59 -08:00
committed by GitHub

View File

@@ -5403,7 +5403,7 @@ bool PhysicsServerCommandProcessor::processRequestRaycastIntersectionsCommand(co
int linkIndex = -1; int linkIndex = -1;
if (bodyHandle->m_multiBody) if (bodyHandle->m_multiBody)
{ {
int linkIndex = clientCmd.m_userDebugDrawArgs.m_parentLinkIndex; int linkIndex = clientCmd.m_requestRaycastIntersections.m_parentLinkIndex;
if (linkIndex == -1) if (linkIndex == -1)
{ {
tr = bodyHandle->m_multiBody->getBaseWorldTransform(); tr = bodyHandle->m_multiBody->getBaseWorldTransform();