当前位置:网站首页>The earth revolves around the sun
The earth revolves around the sun
2022-07-06 12:54:00 【SQ Liu】
The earth revolves around the sun
newly build Unity3D engineering , Do some preparatory work

1、 newly build 2 individual 3D sphere , Rename each to :Sun,Earth
2、 stay Project The palette , newly build Texture,Material,Scripts Folder
(1) stay Texture Under the folder , Import mapping material ( Baidu search sun map 、 Just map the earth . The following is my baidu material )

(2) stay Material Under the folder , Create separate 2 Materials , Put their Shader Shader changes , As shown in the figure below 
(3) stay Scripts Under the folder , establish C# Script , Double-click to open , Write code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class earthAroundSun : MonoBehaviour
{
public Transform sun;
void Update()
{
transform.RotateAround(sun.position, Vector3.up, 1f); //RotateAround Is rotating around another point
}
}
3、 go back to Unity3D, take Sun Component drag in Sun in , Here's the picture 
4、 Achieve the effect diagram 
边栏推荐
- [算法] 剑指offer2 golang 面试题9:乘积小于k的子数组
- [algorithm] sword finger offer2 golang interview question 3: the number of 1 in the binary form of the first n numbers
- It has been solved by personal practice: MySQL row size too large (> 8126) Changing some columns to TEXT or BLOB or using ROW_ FORMAT
- GPS高程拟合抗差中误差的求取代码实现
- How to reduce the shutdown time of InnoDB database?
- IText 7 generate PDF summary
- [Chongqing Guangdong education] reference materials for regional analysis and planning of Pingdingshan University
- 染色法判定二分图
- [算法] 剑指offer2 golang 面试题2:二进制加法
- In 2020, the average salary of IT industry exceeded 170000, ranking first
猜你喜欢

FairyGUI简单背包的制作

Halcon knowledge: gray_ Tophat transform and bottom cap transform
![[算法] 剑指offer2 golang 面试题10:和为k的子数组](/img/63/7422489d09a64ec9f0e79378761bf1.png)
[算法] 剑指offer2 golang 面试题10:和为k的子数组

【GNSS数据处理】赫尔默特(helmert)方差分量估计解析及代码实现
![[algorithm] sword finger offer2 golang interview question 3: the number of 1 in the binary form of the first n numbers](/img/64/0f352232359c7d44f12b20a64c7bb4.png)
[algorithm] sword finger offer2 golang interview question 3: the number of 1 in the binary form of the first n numbers

Unity3D基础入门之粒子系统(属性介绍+火焰粒子系统案例制作)

闇の連鎖(LCA+树上差分)

基本Dos命令

编辑距离(多源BFS)

Code example of MATLAB reading GNSS observation value o file
随机推荐
[dry goods] cycle slip detection of suggestions to improve the fixed rate of RTK ambiguity
Knowledge system of digital IT practitioners | software development methods -- agile
[Chongqing Guangdong education] reference materials for regional analysis and planning of Pingdingshan University
341. Flatten nested list iterator
[算法] 劍指offer2 golang 面試題2:二進制加法
[algorithm] sword finger offer2 golang interview question 9: subarray with product less than k
KF UD分解之伪代码实现进阶篇【2】
Problems and solutions of robust estimation in rtklib single point location spp
Introduction to the daily practice column of the Blue Bridge Cup
染色法判定二分图
[algorithm] sword finger offer2 golang interview question 5: maximum product of word length
Lean product development - Lean Software Development & lean product development
Office prompts that your license is not genuine pop-up box solution
The service robots that have been hyped by capital and the Winter Olympics are not just a flash in the pan
《软件测试》习题答案:第一章
Combination of fairygui check box and progress bar
IText 7 generate PDF summary
Prove the time complexity of heap sorting
Unity3D基础入门之粒子系统(属性介绍+火焰粒子系统案例制作)
There is no red exclamation mark after SVN update