纳金网
标题:
三维螺旋运动的代码
[打印本页]
作者:
烟雨
时间:
2015-5-29 02:52
标题:
三维螺旋运动的代码
三维螺旋运动的代码
using UnityEngine;
using System.Collections;
public class test_3d : MonoBehaviour {
void Start () {
}
void Update () {
Up_force();
}
void Up_force()
{
transform.Translate(0f, 0f, 1f);
transform.RotateAround(Vector3.zero, Vector3.forward, 200f * Time.deltaTime);
}
}
复制代码
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5