当前位置:网站首页>About the practice topic of screen related to unity screen, unity moves around a certain point inside
About the practice topic of screen related to unity screen, unity moves around a certain point inside
2022-07-03 00:24:00 【charlsdm】
public class TransformTarget : MonoBehaviour
{
public Transform Target;
public float roundSpeed = 1000.0f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
this.transform.LookAt(Target);
if(Input.GetMouseButtonDown(1))
{
this.transform.RotateAround(Target.position, Vector3.up, roundSpeed * Time.deltaTime);
}
}
}
Target Something that surrounds an object , The main function is RotateAround This function
边栏推荐
- 多进程编程(三):消息队列
- Implement the foreach method of array
- [shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)
- form表单实例化
- LeedCode1480.一维数组的动态和
- NC24840 [USACO 2009 Mar S]Look Up
- TypeError: Cannot read properties of undefined (reading ***)
- collections. What is the purpose of chainmap- What is the purpose of collections. ChainMap?
- What are the recommended thesis translation software?
- Interpretation of new plug-ins | how to enhance authentication capability with forward auth
猜你喜欢

布隆过滤器

Multiprocess programming (I): basic concepts

Architecture: database architecture design

接口差异测试——Diffy工具

The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north

TypeError: Cannot read properties of undefined (reading ***)

Install docker and use docker to install MySQL

Multiprocess programming (II): Pipeline

Interface difference test - diffy tool

Chinatelecom has maintained a strong momentum in the mobile phone user market, but China Mobile has opened a new track
随机推荐
TypeError: Cannot read properties of undefined (reading ***)
Feature Engineering: summary of common feature transformation methods
毕业总结
The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north
redis21道经典面试题,极限拉扯面试官
NC24840 [USACO 2009 Mar S]Look Up
[target detection] r-cnn, fast r-cnn, fast r-cnn learning
What are the projects of metauniverse and what are the companies of metauniverse
有哪些比较推荐的论文翻译软件?
洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举
Bigder:32/100 测试发现的bug开发认为不是bug怎么处理
经济学外文文献在哪查?
Nc20806 District interval
【单片机项目实训】八路抢答器
Explain in detail the process of realizing Chinese text classification by CNN
form表单实例化
JSON转换工具类
Chapter 3 of getting started with MySQL: database creation and operation
[Chongqing Guangdong education] audio visual language reference materials of Xinyang Normal University
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场