当前位置:网站首页>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
边栏推荐
- Multi process programming (III): message queue
- [shutter] open the third-party shutter project
- [shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)
- 大学生课堂作业2000~3000字的小论文,标准格式是什么?
- Seckill system design
- 多进程编程(五):信号量
- Bigder:32/100 测试发现的bug开发认为不是bug怎么处理
- Digital collection trading website domestic digital collection trading platform
- Basic 10 of C language: array and pointer
- redis21道经典面试题,极限拉扯面试官
猜你喜欢
TypeError: Cannot read properties of undefined (reading ***)
Open source | Wenxin big model Ernie tiny lightweight technology, which is accurate and fast, and the effect is fully open
QT 如何将数据导出成PDF文件(QPdfWriter 使用指南)
Digital twin visualization solution digital twin visualization 3D platform
开源了 | 文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
Practical series - free commercial video material library
Additional: token; (don't read until you finish writing...)
带角度的检测框 | 校准的深度特征用于目标检测(附实现源码)
Maya fishing house modeling
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
随机推荐
数组常用操作方法整理(包含es6)及详细使用
哪些软件可以整篇翻译英文论文?
Cmake basic use
NC24325 [USACO 2012 Mar S]Flowerpot
AcWing_ 188. Warrior cattle_ bfs
Slf4j + logback logging framework
Implement the foreach method of array
Where can I check the foreign literature of economics?
Unique line of "Gelu"
v8
Architecture: load balancing
洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
130 pages of PPT from the brick boss introduces the new features of Apache spark 3.2 & 3.3 in depth
Interface difference test - diffy tool
开源了 | 文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
多进程编程(五):信号量
Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration
Which software can translate an English paper in its entirety?
JS interviewer wants to know how much you understand call, apply, bind no regrets series
How to specify const array in the global scope of rust- How to specify const array in global scope in Rust?