ch03空间与运动(Unity3D)
发布时间
阅读量:
阅读量
一、模拟太阳系
编写一个程序来开发一个完整的日心系统,并确保各个行星的公转速度各不相同;这些行星轨道所在平面不在同一平面上。
实现截图如下(正在转动中):

为了看的更清楚,以下取消了阴影

主要代码:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SolarSystem : MonoBehaviour
{
// Start is called before the first frame update
public Transform Sun;
public Transform Mercury;
public Transf
全部评论 (0)
还没有任何评论哟~
