当前位置:网站首页>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;
}
}
边栏推荐
- 计组笔记(1)——校验码、原补码乘除计算、浮点数计算
- Reading and visualization of DICOM, MHD and raw files in medical imaging
- 中国金刚烷行业研究与投资预测报告(2022版)
- 【Leetcode】1352. 最后 K 个数的乘积
- Research and investment forecast report of adamantane industry in China (2022 Edition)
- 2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
- 775 Div.1 B. integral array mathematics
- [groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)
- [crampon programming] lintcode decoding Encyclopedia - 1100 strange printer
- 2021 huashubei mathematical modeling idea + reference + paper
猜你喜欢

质量体系建设之路的分分合合

AutoCAD - workspace settings
![[groovy] closure (closure call | closure default parameter it | code example)](/img/61/754cee9a940fd4ecd446b38c2f413d.jpg)
[groovy] closure (closure call | closure default parameter it | code example)
![[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)](/img/2b/933586b6feff1d48c5bee11cd734ba.jpg)
[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)

AutoCAD - set layer

【acwing】837. Number of connected block points

3dsmax snaps to frozen objects
![[AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator](/img/cc/06580ce7b553182968d273841a78b4.jpg)
[AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator

AutoCAD - stretching
![[groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)](/img/1b/1fa2ebc9a6c5d271c9b39f5e508fb0.jpg)
[groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)
随机推荐
669. Prune binary search tree ●●
AutoCAD - command repetition, undo and redo
Emlog blog theme template source code simple good-looking responsive
PostgreSQL surpasses mysql, and the salary of "the best programming language in the world" is low
Fluent objects and lists
History of web page requests
2021 electrician cup idea + code - photovoltaic building integration plate index development trend analysis and prediction: prediction planning issues
Reading and visualization of DICOM, MHD and raw files in medical imaging
Create a pyGame window with a blue background
[Business Research Report] top ten trends of science and technology and it in 2022 - with download link
[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens
flutter 对象和列表
#775 Div.1 C. Tyler and Strings 组合数学
[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
Solution of circular dependency
2021-10-29
Unity connects to the database
质量体系建设之路的分分合合
中国聚氨酯硬泡市场调研与投资预测报告(2022版)
Detailed introduction of OSPF header message