Unity ForceMode一共有四种,分别是Force,Impulse,VelocityChange和Acceleration
可分为两组,一组是Force和Acceleration,另一组是Impulse和VelocityChange。
每组两个成员区别在于是否考虑物体(刚体)质量,前者考虑质量,后者不考虑质量。
第一组施加力,第二组直接增加速度。
public void AddForce(Vector3 force, ForceMode mode);
Force 物体施加大小值为force的力
Acceleration 物体施加大小值为force* GetComponent().mass的力
Impulse 物体增加force/ GetComponent().mass的速度
VelocityChange 物体增加force的速度