|
@@ -314,8 +314,8 @@ namespace ShadowStudio.Tool
|
|
|
|
|
|
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;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -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;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
if (currentLine.Line.positionCount < 1 || Vector3.Distance(posks, pointPos) >= (obj ? (minDis / 5f) : minDis))
|
|
|
{
|