“hujiajun” hai 9 meses
pai
achega
6b1955bc52

+ 1 - 0
Assets/SDK/Modules/Module_InputSystem/InputDeviceBase/DevicePartBase/DeviceDetector/Pointer/Line/CubeLine.cs

@@ -44,6 +44,7 @@ namespace SC.XR.Unity.Module_InputSystem {
                 } else {
                     tempLocalScale.z = initLocalScaleZ;
                 }
+                tempLocalScale.z = Vector3.Distance(pointerBase.cursorBase.transform.position, meshRender.transform.position)*720;
                 meshRender.transform.localScale = tempLocalScale;
 
             }