Demo1
using UnityEngine;
using System.Collections;
public class Demo1 : MonoBehaviour {
public GameObject ball1;
public GameObject ball2;
// Use this for initialization
void Start () {
// GetComponent<Rigidbody> ().useGravity = true;
// GetComponent<Rigidbody> ().angularVelocity = Vector3.up * 100;//角速度
// GetComponent<Rigidbody> ().velocity = Vector3.up * 15;//速度
// GetComponent<Rigidbody> ().centerOfMass = Vector3.up;//重心
// GetComponent<Rigidbody> ().detectCollisions