Add visual debug for GetCollisionInfo probes

This commit is contained in:
Lwmte 2021-10-02 21:50:36 +03:00
parent 1524ca27d6
commit cc90bfbb0b

View file

@ -1354,6 +1354,8 @@ void GetCollisionInfo(COLL_INFO* coll, ITEM_INFO* item, PHD_VECTOR offset, bool
topRoomNumber = item->roomNumber;
}
g_Renderer.addDebugSphere(Vector3(x, y, z), 64, Vector4(1, 0, 0, 1), RENDERER_DEBUG_PAGE::LOGIC_STATS);
collResult = GetCollisionResult(x, y, z, topRoomNumber);
tfLocation = GetRoom(tfLocation, x, y, z);
@ -1401,6 +1403,8 @@ void GetCollisionInfo(COLL_INFO* coll, ITEM_INFO* item, PHD_VECTOR offset, bool
x = xPos + xleft;
z = zPos + zleft;
g_Renderer.addDebugSphere(Vector3(x, y, z), 64, Vector4(0, 0, 1, 1), RENDERER_DEBUG_PAGE::LOGIC_STATS);
collResult = GetCollisionResult(x, y, z, item->roomNumber);
ROOM_VECTOR lrfLocation = GetRoom(item->location, x, y, z);
@ -1450,6 +1454,8 @@ void GetCollisionInfo(COLL_INFO* coll, ITEM_INFO* item, PHD_VECTOR offset, bool
x = xPos + xright;
z = zPos + zright;
g_Renderer.addDebugSphere(Vector3(x, y, z), 64, Vector4(0, 1, 0, 1), RENDERER_DEBUG_PAGE::LOGIC_STATS);
collResult = GetCollisionResult(x, y, z, item->roomNumber);
lrfLocation = GetRoom(item->location, x, y, z);