- 最后登录
- 2021-7-6
- 注册时间
- 2012-12-27
- 阅读权限
- 90
- 积分
- 76145
 
- 纳金币
- 53488
- 精华
- 316
|
三维螺旋运动的代码- 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);
-
-
- }
- }
复制代码 |
|