fix the issue "Inconsistency between rayTest and rayTestBatch of pybullet #2887"

we should initialize these variables otherwise these will be random.
This commit is contained in:
Steven
2020-09-03 20:30:14 +08:00
parent 47b0259b97
commit 8a16ed5009

View File

@@ -3701,6 +3701,8 @@ B3_SHARED_API b3SharedMemoryCommandHandle b3CreateRaycastCommandInit(b3PhysicsCl
command->m_requestRaycastIntersections.m_numCommandRays = 1;
command->m_requestRaycastIntersections.m_numStreamingRays = 0;
command->m_requestRaycastIntersections.m_numThreads = 1;
command->m_requestRaycastIntersections.m_parentObjectUniqueId = -1;
command->m_requestRaycastIntersections.m_parentLinkIndex=-1;
command->m_requestRaycastIntersections.m_numCommandRays = 1;
command->m_requestRaycastIntersections.m_fromToRays[0].m_rayFromPosition[0] = rayFromWorldX;