소스 검색

Tweak general dragpoint rotation

Change axis to camera transform's forward and right

Closes #8
habeebweeb 4 년 전
부모
커밋
b11187ecf5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPointGeneral.cs

+ 2 - 2
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPointGeneral.cs

@@ -145,8 +145,8 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
             if (CurrentDragType == DragType.RotLocalXZ)
             {
                 MyObject.rotation = currentRotation;
-                MyObject.Rotate(Vector3.forward, mouseDelta.x / 6f, Space.World);
-                MyObject.Rotate(Vector3.right, -mouseDelta.y / 4f, Space.World);
+                MyObject.Rotate(camera.transform.forward, -mouseDelta.x / 6f, Space.World);
+                MyObject.Rotate(camera.transform.right, mouseDelta.y / 4f, Space.World);
                 OnRotate();
             }