纳金网
标题:
小球自由落体 点击小球 小球弹起
[打印本页]
作者:
烟雨
时间:
2015-5-29 02:49
标题:
小球自由落体 点击小球 小球弹起
小球自由落体 点击小球 小球弹起
using UnityEngine;
using System.Collections;
public class sadawd : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetMouseButtonDown(0))
{
rigidbody.AddForce(new Vector3(0, 1, 0) * 100f);
}
}
}
复制代码
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5