Skip to content

Commit

Permalink
Add yShift position when displaying the positions of cylinders (Harbo…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwvc authored and aMannus committed Jul 19, 2022
1 parent 521db5e commit 0a4957e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soh/soh/Enhancements/debugger/colViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0a4957e

Please sign in to comment.