Browse Source

画笔出现在光标尽头,Bug199

蓝色星空 1 năm trước cách đây
mục cha
commit
3ee0e1ca9f

+ 4 - 4
Assets/Studio/_4ShowScene/ConsoleFunctionModule/DrawPenFunctionModule/Scripts/DrawPener.cs

@@ -314,8 +314,8 @@ namespace ShadowStudio.Tool
             //Vector3 pointPos = part.pointerBase.cursorBase.transform.position;
             if (API_Module_InputSystem.InputDeviceStatus(InputDeviceType.KS))
             {
-                pointPos = API_Module_InputSystem_KS.KSPosition(API_Module_InputSystem_KS.GCType.Right);
-                pointPos += API_Module_InputSystem_KS.KSTransform(API_Module_InputSystem_KS.GCType.Right).forward.normalized * SystemSettingMgr.Instance.settings.RayDis;
+              //  pointPos = API_Module_InputSystem_KS.KSPosition(API_Module_InputSystem_KS.GCType.Right);
+              //  pointPos += API_Module_InputSystem_KS.KSTransform(API_Module_InputSystem_KS.GCType.Right).forward.normalized * SystemSettingMgr.Instance.settings.RayDis;
             }
 
 
@@ -341,8 +341,8 @@ namespace ShadowStudio.Tool
                 Vector3 posks = part.detectorBase.pointerBase.cursorBase.transform.position;
                 if (API_Module_InputSystem.InputDeviceStatus(InputDeviceType.KS))
                 {
-                    posks = API_Module_InputSystem_KS.KSPosition(API_Module_InputSystem_KS.GCType.Right);
-                    posks += API_Module_InputSystem_KS.KSTransform(API_Module_InputSystem_KS.GCType.Right).forward.normalized * SystemSettingMgr.Instance.settings.RayDis;
+                  //  posks = API_Module_InputSystem_KS.KSPosition(API_Module_InputSystem_KS.GCType.Right);
+                  //  posks += API_Module_InputSystem_KS.KSTransform(API_Module_InputSystem_KS.GCType.Right).forward.normalized * SystemSettingMgr.Instance.settings.RayDis;
                 }
                 if (currentLine.Line.positionCount < 1 || Vector3.Distance(posks, pointPos) >= (obj ? (minDis / 5f) : minDis))
                 {