lvjincheng 4 лет назад
Родитель
Сommit
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);