public IEnumerator rotate(){
int frames = 9;
float degreesPerFrame = degrees / (float)frames;
for (int i=1; i<=frames; i++) {
this.transform.RotateAround( RollPoint, Axis, degreesPerFrame );
yield return new WaitForFixedUpdate();
}
}
degree已经赋值90;
不管用什么方式,cube就是不旋转90度,就是旋转90.000几度或者旋转89.999几度,快被搞死