当前位置:网站首页>关于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这个函数
边栏推荐
- collections. What is the purpose of chainmap- What is the purpose of collections. ChainMap?
- [shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a
- [reading notes] phased summary of writing reading notes
- Should you study kubernetes?
- Angled detection frame | calibrated depth feature for target detection (with implementation source code)
- 95 pages of smart education solutions 2022
- zhvoice
- 95页智慧教育解决方案2022
- Seckill system design
- 顶级 DevOps 工具链大盘点
猜你喜欢
Understanding and application of least square method
秒杀系统设计
Digital twin visualization solution digital twin visualization 3D platform
Flexible combination of applications is a false proposition that has existed for 40 years
MATLAB signal processing [Q & a notes-1]
Which software can translate an English paper in its entirety?
Open source | Wenxin big model Ernie tiny lightweight technology, which is accurate and fast, and the effect is fully open
Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)
Where can I find the English literature of the thesis (except HowNet)?
Matlab 信号处理【问答笔记-1】
随机推荐
Maybe you read a fake Tianlong eight
Top Devops tool chain inventory
Explain in detail the process of realizing Chinese text classification by CNN
maya渔屋建模
Flexible combination of applications is a false proposition that has existed for 40 years
Where can I check the foreign literature of economics?
Open source | Wenxin big model Ernie tiny lightweight technology, which is accurate and fast, and the effect is fully open
Cmake basic use
S12. Verify multi host SSH mutual access script based on key
Using tensorflow to realize voiceprint recognition
collections. What is the purpose of chainmap- What is the purpose of collections. ChainMap?
JDBC tutorial
Many to one, one to many processing
Architecture: database architecture design
Develop knowledge points
JVM foundation review
leetcode 650. 2 keys keyboard with only two keys (medium)
Pytorch里面多任务Loss是加起来还是分别backward?
Leetcode DP three step problem
Returns the maximum distance between two nodes of a binary tree