当前位置:网站首页>C # perspective following
C # perspective following
2022-07-05 04:54:00 【yaohuiyaoo】
using UnityEngine;
using System.Collections;
public class CameraShareScript : MonoBehaviour
{
// The distance of the camera from the object to be followed
Vector3 Dir;
// The object to follow
public GameObject m_Player;
// Use this for initialization
void Start ()
{
// Get the distance between the camera and the object to follow
Dir = m_Player.transform.position - transform.position;
}
// Update is called once per frame
void LateUpdate ()
{
// The location of the camera
transform.position = m_Player.transform.position - Dir;
}
}
边栏推荐
- Unity get component
- MySQL audit log Archive
- Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 006 unity toolbar
- 【Leetcode】1352. Product of the last K numbers
- mysql审计日志归档
- AutoCAD - Center zoom
- [crampon programming] lintcode decoding Encyclopedia - 1100 strange printer
- History of web page requests
- Decryption function calculates "task state and lifecycle management" of asynchronous task capability
- Download the details and sequence of the original data access from the ENA database in EBI
猜你喜欢

计组笔记(1)——校验码、原补码乘除计算、浮点数计算

An article takes you to thoroughly understand descriptors

【Leetcode】1352. 最后 K 个数的乘积
![[Business Research Report] top ten trends of science and technology and it in 2022 - with download link](/img/9f/4fc63fa7b0e9afc5dd638d4b599b2c.jpg)
[Business Research Report] top ten trends of science and technology and it in 2022 - with download link
![[Business Research Report] Research Report on male consumption trends in other economic times -- with download link](/img/08/7ea490c46c3f64af3e78d07b19b3e3.jpg)
[Business Research Report] Research Report on male consumption trends in other economic times -- with download link
![[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens](/img/20/5c5550e6dabc76702f0e7ce3bef068.jpg)
[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens

Emlog blog theme template source code simple good-looking responsive

AutoCAD - workspace settings

Use assimp library to read MTL file data

AutoCAD -- dimension break
随机推荐
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
jmeter -- 分布式压测
Rip notes [rip message security authentication, increase of rip interface measurement]
[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens
China polyurethane rigid foam Market Research and investment forecast report (2022 Edition)
#775 Div.1 C. Tyler and Strings 组合数学
Unity get component
2021 huashubei mathematical modeling idea + reference + paper
"Measuring curve length" of CAD dream drawing
Flink cluster configuration
C iterator
mysql审计日志归档
China needle coke industry development research and investment value report (2022 Edition)
Unity connects to the database
XSS injection
Error statuslogger log4j2 could not find a logging implementation
2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
Mode in BST (binary tree & Notes on question brushing)
中国艾草行业研究与投资前景预测报告(2022版)
PR first time