当前位置:网站首页>Unity3d lookat parameter description
Unity3d lookat parameter description
2022-06-30 04:49:00 【Answer-3】
Unity3d LookAt Parameter description
//
// Abstract :
// Rotates the transform so the forward vector points at target's current position.
//
// Parameters :
// target:
// Object to point towards.
//
// worldUp:
// Vector specifying the upward direction.
public void LookAt(Transform target, Vector3 worldUp);among target Target for orientation ,worldUp Rotate the object itself after facing the target , bring worldUp vertical z Axis up ;
transform.LookAt(target,transform.right); 
transform.LookAt(target,-transform.right);

transform.LookAt(target,transform.up);

transform.LookAt(target,-transform.up);

边栏推荐
- Lambda&Stream
- Keywords implements and @override
- Collective system
- Easyrecovery data recovery software recovers my photo and video data two years ago
- Thread safety and processing caused by multithreading
- 力扣292周赛题解
- System programming summary
- 0 foundation starts self-study unit notes control direction becomes larger
- [control] multi agent system summary. 5. system consolidation.
- Qos(Quality of Service)
猜你喜欢

Photon pun refresh hall room list

Threejs realizes the simulation of river, surface flow, pipe flow and sea surface

PBR material: basic principle and simple fabrication

Dual domain SSL certificate

Window10 jar double click to run without response

Sectigo certificate

Recommended cultural landmarks of these tourist attractions in Bangkok

Introduction to some representations, neighbors and degrees of Graphs

【Paper】2021_ Analysis of the Consensus Protocol of Heterogeneous Agents with Time-Delays

Qos(Quality of Service)
随机推荐
Connect to the database and run node JS running database shows that the database is missing
One interview question every day to talk about the process of TCP connection and disconnection
Unreal 4 learning notes - Animated Montage
Singapore parent-child tour, these popular attractions must be arranged
One interview question a day - the underlying implementation of synchronize and the lock upgrade process
Requirements for transfer transaction cases: 1 Employee 1 transfers money to employee 2. Therefore, two update sals should be executed. Purpose: either both updates are successful or both implementati
[control] multi agent system summary. 5. system consolidation.
National Museum of Singapore - give you spiritual and physical satisfaction
Yolov5 torch installation
Learn about threads
Software digital signature certificate
Check London attractions suitable for parents and children in winter vacation
How to repair expired SSL certificates?
Transport layer protocol tcp/udp
Difference between request forwarding and redirection
小C的数组(array)
C # equipment synthesis
Unit screenshot saved on the phone
EasyRecovery数据恢复软件 恢复了我两年前的照片视频数据
Efficiency test of adding and querying ArrayList and LinkedList