mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Add yShift position when displaying the positions of cylinders (#823)
This commit is contained in:
parent
169f757954
commit
edfa369639
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue