当前位置:网站首页>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
边栏推荐
- MFC file operation
- Using tensorflow to realize voiceprint recognition
- Blue decides red - burst CS teamserver password
- NC24840 [USACO 2009 Mar S]Look Up
- [shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)
- Chinatelecom has maintained a strong momentum in the mobile phone user market, but China Mobile has opened a new track
- Confluence的PDF导出中文文档异常显示问题解决
- 毕业总结
- LeedCode1480.一维数组的动态和
- NC20806 区区区间间间
猜你喜欢
How do educators find foreign language references?
95 pages of smart education solutions 2022
洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
Additional: token; (don't read until you finish writing...)
Architecture: load balancing
Xcode real machine debugging
Markdown使用教程
130 pages of PPT from the brick boss introduces the new features of Apache spark 3.2 & 3.3 in depth
Seckill system design
多进程编程(一):基本概念
随机推荐
helm 基础学习
论文的英文文献在哪找(除了知网)?
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a
QT 如何将数据导出成PDF文件(QPdfWriter 使用指南)
Architecture: database architecture design
Install docker and use docker to install MySQL
经济学外文文献在哪查?
数组常用操作方法整理(包含es6)及详细使用
多进程编程(四):共享内存
NC24840 [USACO 2009 Mar S]Look Up
Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)
MATLAB signal processing [Q & a notes-1]
Interpretation of new plug-ins | how to enhance authentication capability with forward auth
Understanding and application of least square method
Where can I find the English literature of the thesis (except HowNet)?
What are the recommended thesis translation software?
Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation
Mutual exclusion and synchronization of threads
Chapter 3 of getting started with MySQL: database creation and operation
Blue decides red - burst CS teamserver password