首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
rotatearound专题
Transform类 RotateAround() 太阳、地球、月亮围绕旋转
1地球—绕—太阳 地球附带脚本中写transform.RotateAround(Sun.transform.position,Vector3.up,30*Time.deltaTime); 2月球—绕—地球 月球附带脚本中写 transform.RotateAround(Earth.position,Earth.up, 20 * Time.deltaTime); 3从原点,让直射光指向地球,
阅读更多...