Correct draw Gizmo Rotate/Scale, OK!!

This commit is contained in:
2024-07-30 23:54:25 +08:00
parent e18a6e7a4a
commit c3a1266da6
11 changed files with 268 additions and 19 deletions

View File

@@ -76,17 +76,20 @@ bool InitGizmoMoveStaticMesh()
if(!cone[i])
return(false);
if(!plane[i])
return(false);
}
{
SceneNode *root_node=new SceneNode(sphere);
SceneNode *root_node=new SceneNode(scale(0.5f),sphere);
{
Transform tm;
constexpr const Vector3f one_scale(1);
constexpr const Vector3f plane_scale(2);
constexpr const Vector3f cylinder_scale(0.35f,0.35f,4.5f);
constexpr const Vector3f cylinder_scale(0.35f,0.35f,4.0f);
{
tm.SetScale(cylinder_scale);