unity ForceMode

 public float jumpAbility;

 GetComponent<Rigidbody>().AddForce(Vector3.up * jumpAbility, ForceMode.Impulse);

wKioL1mhiOjAInEoAACh3MBHkAA448.jpg

posted @ 2017-11-07 16:37  朋丶Peng  阅读(209)  评论(0)    收藏  举报