当前位置:网站首页>关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
2022-07-02 23:00: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代表的事被环绕物体的东西,主要函数是RotateAround这个函数
边栏推荐
- MFC gets the current time
- Pytorch里面多任务Loss是加起来还是分别backward?
- 开发知识点
- Hit the industry directly! The propeller launched the industry's first model selection tool
- Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration
- Install docker and use docker to install MySQL
- FRP reverse proxy +msf get shell
- Pat 1030 travel plan (30 points) (unfinished)
- SQL query statement parameters are written successfully
- Should you study kubernetes?
猜你喜欢

Should you study kubernetes?

Cmake basic use

带角度的检测框 | 校准的深度特征用于目标检测(附实现源码)

Install docker and use docker to install MySQL

论文的英文文献在哪找(除了知网)?

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

Digital twin smart factory develops digital twin factory solutions

What website can you find English literature on?
![Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation](/img/4a/ab732c41ea8a939fa0983fec475622.png)
Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation

Basic 10 of C language: array and pointer
随机推荐
基于OpenCV实现口罩识别
顶级 DevOps 工具链大盘点
Create an interactive experience of popular games, and learn about the real-time voice of paileyun unity
How to specify const array in the global scope of rust- How to specify const array in global scope in Rust?
Slf4j + logback logging framework
Monitor container runtime tool Falco
How do educators find foreign language references?
TypeError: Cannot read properties of undefined (reading ***)
[reading notes] phased summary of writing reading notes
MFC file operation
Slf4j + Logback日志框架
67页新型智慧城市整体规划建设方案(附下载)
Seckill system design
Maybe you read a fake Tianlong eight
Pytorch里面多任务Loss是加起来还是分别backward?
Which software can translate an English paper in its entirety?
Bloom filter
Additional: token; (don't read until you finish writing...)
MFC 获取当前时间
Analyze ad654: Marketing Analytics