No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PhysicsBall.cs 287B

1234567891011121314151617
  1. using UnityEngine;
  2. public class PhysicsBall : MonoBehaviour
  3. {
  4. Rigidbody rb;
  5. public float speed = 1;
  6. void Start()
  7. {
  8. rb = GetComponent<Rigidbody>();
  9. rb.AddForce(new Vector3(0, 1, 0) * speed, ForceMode.Impulse);
  10. }
  11. void FixedUpdate()
  12. {
  13. }
  14. }