我想旋转一组对象在90度的统一,所以我将所有对象设置为相同的父级,然后旋转父级,它旋转得很好但速度太快,我看不到,我怎么能减慢速度?我尝试都下面码的和两者是相同的:\此代码出现在由更新调用函数时上的按钮在Unity中旋转一组对象的速度太快
float totalRotation = 0;
while (Mathf.Abs(totalRotation) < 90){
totalRotation += Time.deltaTime;
Parent.transform.RotateAround(temp.transform.position, flag*Vector3.right, Time.deltaTime);
}
用户按下并这一个
Parent.transform.RotateAround(temp.transform.position, flag*Vector3.right, 90f);
感谢在提前!
发帖代码片段**完全没用**。没有人对此代码出现的位置有任何线索等。 – Fattie
@JoeBlow编辑,希望现在更清楚。 – msLangdon95