mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 17:57:59 +03:00
Add visual debug for GetCollisionInfo probes
This commit is contained in:
parent
1524ca27d6
commit
cc90bfbb0b
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue