CedricGuillemet / ImGuizmo

Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui
MIT License
3.22k stars 907 forks source link

guizmo is offset to the side #211

Closed jianwen12390 closed 2 years ago

jianwen12390 commented 2 years ago

Untitled White ball is the guizmo, the handles are too small to be seen here and black cube on top of it, is the entity object that will be controlled by the guizmo

The translation and scaling works properly, just that the position of the guizmo is wrong and the size of the handles is too small

image

jianwen12390 commented 2 years ago

Turns out my SetRect was wrong and as for the the size, I just went to ImGuizmo.cpp and multiply gContext.mScreenFactor by 30.f