资源简介

unity3d 太阳系模型 地球围绕太阳转 月亮围绕地球转

资源截图

代码片段和文件信息

using UnityEngine;
using System.Collections;

public class Earth : MonoBehaviour {

    public static float rotatespeed = 15f;
    public static float spinspeed = 30f;
    public Transform thesun;

    
    // Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {


        //地球自转
        transform.Rotate(Vector3.up *rotatespeed* Time.deltaTime);
        
        //地球公转
        transform.RotateAround(Vector3.zero Vector3.up spinspeed * Time.deltaTime);
        
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3378  2011-07-18 12:56  solar\Assets\Materials\usertile28.mat

     文件       3378  2011-07-18 13:37  solar\Assets\Materials\usertile32.mat

     文件       3378  2011-07-18 13:58  solar\Assets\Materials\usertile34.mat

     文件      47842  2011-07-18 16:17  solar\Assets\Scenes\scene1.unity

     文件      11591  2011-07-18 16:43  solar\Assets\Scenes\scene2.unity

     文件        560  2011-07-18 15:51  solar\Assets\scripts\Earth.cs

     文件       1377  2011-07-18 16:42  solar\Assets\scripts\GuiMouse.cs

     文件        200  2011-07-18 14:40  solar\Assets\scripts\Main.cs

     文件        743  2011-07-18 16:12  solar\Assets\scripts\Moon.cs

     文件        388  2011-07-18 15:22  solar\Assets\scripts\Sun.cs

     文件       6295  2011-07-18 13:43  solar\Assets\scripts\unirotate.cs

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile27.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile28.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile29.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile30.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile31.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile32.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile33.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile34.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile35.bmp

     文件      49208  2009-06-11 05:18  solar\Assets\Textures\usertile36.bmp

     文件      31941  2011-07-18 16:43  solar\Library\assetDatabase3

     文件          1  2011-07-18 12:49  solar\Library\AssetImportState

     文件       5030  2011-07-18 12:49  solar\Library\AssetServerCacheV3

     文件        462  2011-07-18 12:49  solar\Library\AudioManager.asset

     文件          0  2011-07-18 12:49  solar\Library\BuildPlayer.prefs

     文件        982  2011-07-18 12:49  solar\Library\BuildSettings.asset

     文件       1367  2011-07-18 12:49  solar\Library\cache\00\00000000000000001000000000000000

     文件        477  2011-07-18 12:49  solar\Library\cache\00\00000000000000002000000000000000

     文件        477  2011-07-18 12:49  solar\Library\cache\00\00000000000000003000000000000000

............此处省略176个文件信息

评论

共有 条评论