SFE_AddForceImpulse.js 120 B

123456789
  1. #pragma strict
  2. function Start () {
  3. rigidbody.AddForce(transform.up * 10, ForceMode.Impulse);
  4. }
  5. function Update () {
  6. }