当前位置:网站首页>关于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这个函数
边栏推荐
- 35页危化品安全管理平台解决方案2022版
- SQL query statement parameters are written successfully
- 35 pages dangerous chemicals safety management platform solution 2022 Edition
- Missing number
- MFC 获取当前时间
- yolov5test. Py comment
- leetcode 650. 2 Keys Keyboard 只有两个键的键盘(中等)
- Linux 下安装 redis
- 洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
- 95页智慧教育解决方案2022
猜你喜欢
请问大家在什么网站上能查到英文文献?
Additional: token; (don't read until you finish writing...)
Container runtime analysis
Open source | Wenxin big model Ernie tiny lightweight technology, which is accurate and fast, and the effect is fully open
In February 2022, the ranking list of domestic databases: oceanbase regained its popularity with "three consecutive increases", and gaussdb is expected to achieve the largest increase this month
CADD course learning (4) -- obtaining proteins without crystal structure (Swiss model)
[shutter] open the third-party shutter project
Where can I find the English literature of the thesis (except HowNet)?
洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
布隆过滤器
随机推荐
Difference between NVIDIA n card and amda card
论文的设计方案咋写?
Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation
Go自定义排序
Pytorch 20 realizes corrosion expansion based on pytorch
直击产业落地!飞桨重磅推出业界首个模型选型工具
AcWing_ 188. Warrior cattle_ bfs
Maybe you read a fake Tianlong eight
带角度的检测框 | 校准的深度特征用于目标检测(附实现源码)
MySQL advanced learning notes (4)
Interface automation coverage statistics - used by Jacobo
MFC file operation
How to specify const array in the global scope of rust- How to specify const array in global scope in Rust?
Is there a specific format for English papers?
How to write the design scheme of the thesis?
Explain in detail the process of realizing Chinese text classification by CNN
Chapter 3 of getting started with MySQL: database creation and operation
1380. Lucky numbers in the matrix
Slf4j + logback logging framework
基于OpenCV实现口罩识别