Calculate rotation distance by Time.deltaTime * speed over time

前端 未结 0 1431
深忆病人
深忆病人 2021-01-05 08:32

Currently I am rotating every frame on Update a gameobject like this.

float rotation = Time.deltaTime * speed;
transform.Rotate(new Vector3(0, 0, rotation));
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题