浏览代码

修改长度

“hujiajun” 7 月之前
父节点
当前提交
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;
 
             }