大家好我需要平滑地旋转一个立方体而没有任何z方向的延迟,但它不会来
using UnityEngine;
using System.Collections;
using System;
public class clockAnimator : MonoBehaviour {
// Use this for initialization
void Start () {
}
private const float
secondsToDegrees = 0.1f;
public Transform seconds;
// Update is called once per frame
void Update () {
DateTime Time = DateTime.Now;
//seconds.localRotation = Quaternion.Euler(0f, 0f,(Time.Millisecond*-secondsToDegrees)*0.03f);
seconds.localRotation = Quaternion.Euler(0,0,Time.Millisecond*-secondsToDegrees);
}
}

提前谢谢 戈库尔
答案 0 :(得分:0)
答案 1 :(得分:0)
我会尝试以下方法: 1)在FixedUpdate()中执行 2)改为使用deltaTime。