var eulerAngleVelocity : Vector3 = Vector3 (0, 100, 0); function FixedUpdate () { var deltaRotation : Quaternion = Quaternion.Euler(eulerAngleVelocity * Time.deltaTime); rigidbody.MoveRotation(rigidbody.rotation * deltaRotation); }
沒有留言:
張貼留言