Browse Source

阻力置0

lvjincheng 4 years ago
parent
commit
b3939e6438
1 changed files with 2 additions and 0 deletions
  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);