瀏覽代碼

阻力置0

lvjincheng 4 年之前
父節點
當前提交
b3939e6438
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Assets/BowArrow/Scripts/Game/Arrow.cs

+ 2 - 0
Assets/BowArrow/Scripts/Game/Arrow.cs

@@ -59,6 +59,8 @@ public class Arrow : MonoBehaviour
 
         newRigidbody.velocity = this.transform.forward * mySpeed;
         newRigidbody.collisionDetectionMode = CollisionDetectionMode.ContinuousDynamic;
+        newRigidbody.drag = 0;
+        newRigidbody.angularDrag = 0;
 
         Transform cameraTF = this.transform.Find("Camera");
         cameraTF.gameObject.SetActive(true);