summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Van Caem <andrewwvc@gmail.com>2022-07-19 09:31:52 +1000
committerGitHub <noreply@github.com>2022-07-18 19:31:52 -0400
commitedfa369639593ae48afa25d838cbdb4f972ea2bf (patch)
tree100df218743b7bfdbcc396487d6f49cdc785f3f4
parent169f757954bcfe788ee72b64b03b9650cd3dec17 (diff)
Add yShift position when displaying the positions of cylinders (#823)
-rw-r--r--soh/soh/Enhancements/debugger/colViewer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/soh/Enhancements/debugger/colViewer.cpp b/soh/soh/Enhancements/debugger/colViewer.cpp
index 1cab6ef64..e98ff0399 100644
--- a/soh/soh/Enhancements/debugger/colViewer.cpp
+++ b/soh/soh/Enhancements/debugger/colViewer.cpp
@@ -529,7 +529,7 @@ void DrawColCheckList(std::vector<Gfx>& dl, Collider** objects, int32_t count) {
Mtx m;
MtxF mt;
- SkinMatrix_SetTranslate(&mt, cyl->dim.pos.x, cyl->dim.pos.y, cyl->dim.pos.z);
+ SkinMatrix_SetTranslate(&mt, cyl->dim.pos.x, cyl->dim.pos.y + cyl->dim.yShift, cyl->dim.pos.z);
MtxF ms;
int32_t radius = cyl->dim.radius == 0 ? 1 : cyl->dim.radius;
SkinMatrix_SetScale(&ms, radius / 128.0f, cyl->dim.height / 128.0f, radius / 128.0f);