summaryrefslogtreecommitdiff
path: root/src/apDebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/apDebug.cpp')
-rw-r--r--src/apDebug.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/apDebug.cpp b/src/apDebug.cpp
index a352d4a..f485474 100644
--- a/src/apDebug.cpp
+++ b/src/apDebug.cpp
@@ -135,6 +135,21 @@ void APDebugDrawer::drawXlu() {
float blX = centreX - edgeDistX, blY = centreY - edgeDistY;
float brX = centreX + edgeDistX, brY = centreY - edgeDistY;
+ switch (ap->collisionCheckType) {
+ case 2: // vert trapezoid
+ tlY = centreY + ap->trpValue0;
+ trY = centreY + ap->trpValue1;
+ blY = centreY + ap->trpValue2;
+ brY = centreY + ap->trpValue3;
+ break;
+ case 3: // horz trapezoid
+ tlX = centreX + ap->trpValue0;
+ trX = centreX + ap->trpValue1;
+ blX = centreX + ap->trpValue2;
+ brX = centreX + ap->trpValue3;
+ break;
+ }
+
// Top
GXPosition3f32(tlX, tlY, 8000.0f);
GXColor4u8(r,g,b,a);