当前位置:网站首页>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);

边栏推荐
- Network high concurrency
- Unreal 4 learning notes - data storage using blueprints
- Differences between beanfactory and factorybean
- 【Paper】2015_ Active fault-tolerant control system design with trajectory re-planning against actuator
- Thread safety and processing caused by multithreading
- 【Paper】2019_ Consensus Control of Multiple AUVs Recovery System Under Switching Topologies and Time D
- 0 basic unity course. Bricklaying
- Malignant bug: 1252 of unit MySQL export
- Static keyword
- Window10 jar double click to run without response
猜你喜欢

Wildcard SSL certificate issuing time

Cheap SSL certificate abroad

Unreal 4 learning notes - set player birth point

National Museum of Singapore - give you spiritual and physical satisfaction

【Paper】2015_ Active fault-tolerant control system design with trajectory re-planning against actuator

Connect to the database and run node JS running database shows that the database is missing

The most comprehensive summary notes of redis foundation + advanced project in history

Marvel fan welfare: Singapore Madame Tussauds Wax Museum Marvel 4D experience Museum

Yolov5 torch installation

Create a simple battle game with photon pun
随机推荐
Connect to the database and run node JS running database shows that the database is missing
Qos(Quality of Service)
Connect to the database and run node JS running database shows that the database is missing
Beanfactory creation process
Implementation of one interview question one distributed lock every day
Universal Studios Singapore: a good place for a one-day parent-child tour in Singapore
Static keyword
Approaching history, introduction to the London Guard Museum
One interview question and one joint index every day
Royal Albert Hall, a popular landmark in London
Yolov5 torch installation
Deep learning ----- different methods to realize inception-10
Recommended cultural landmarks of these tourist attractions in Bangkok
Intern method of string
图的一些表示方式、邻居和度的介绍
Process architecture and process management
PS1 Contemporary Art Center, Museum of modern art, New York
harbor api 2.0查询
Network high concurrency
Issue SSL certificate with IP address