当前位置:网站首页>About transform InverseTransformPoint, transform. InverseTransofrmDirection
About transform InverseTransformPoint, transform. InverseTransofrmDirection
2022-06-24 21:34:00 【charlsdm】
The following is an introduction transform.InverseTransformPoint,
transform.InverseTransformDirection and transform.InverseTransformVector
The code is attached below
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InversePoint : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.Log(Vector3.forward);
Debug.Log(" The converted point " + this.transform.InverseTransformPoint(Vector3.forward));
Debug.Log(" After the change of direction ( Not affected by scaling )" + this.transform.InverseTransformDirection(Vector3.forward));
Debug.Log(" After the change of direction ( Affected by scaling )" + this.transform.InverseTransformVector(Vector3.forward));
}
// Update is called once per frame
void Update()
{
}
}
It is the point that converts the world coordinates into the relative local coordinate system
Local to world coordinate system , Affected by scaling
Debug.Log(" Local to world point " + this.transform.TransformPoint(Vector3.forward));
Debug.Log(" Local to global ( Not affected by scaling )" + this.transform.TransformDirection(Vector3.forward));
Debug.Log(" Local turn World direction " + this.transform.TransformVector(Vector3.forward));
边栏推荐
- TDengine可通过数据同步工具 DataX读写
- 一文理解OpenStack网络
- 架构实战营 第 6 期 毕业总结
- NPM download speed is slow
- TCP_ Nodelay and TCP_ CORK
- 188. the best time to buy and sell stocks IV
- Summary of message protocol problems
- What does CTO (technical director) usually do?
- CondaValueError: The target prefix is the base prefix. Aborting.
- Please open online PDF carefully
猜你喜欢
Blender's simple skills - array, rotation, array and curve
123. 买卖股票的最佳时机 III
Volcano成Spark默认batch调度器
Adding subscribers to a list using mailchimp's API V3
Simple analysis of WordPress architecture
Memcached comprehensive analysis – 3 Deletion mechanism and development direction of memcached
Station B takes goods to learn from New Oriental
Pytest test framework II
memcached完全剖析–1. memcached的基础
Realization of truth table assignment by discrete mathematical programming
随机推荐
GDB debugging
Foundations of Cryptography
Blender's landscape
Network layer
Dynamic routing protocol rip, OSPF
Self signed certificate generation
Common data model (updating)
Intelligent fish tank control system based on STM32 under Internet of things
TCP Jprobe utilization problem location
Common self realization functions in C language development
Summary of message protocol problems
Jar package operation
188. 买卖股票的最佳时机 IV
OSI notes sorting
DHCP operation
Microsoft Certification (dynamic 365) test
memcached全面剖析–5. memcached的应用和兼容程序
(to be optimized and modified) vivado DDR4 SDRAM (MIG) (2.2) IP core learning record
Pytest testing framework
HCIA assessment