Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定一个欧拉角向量 3,如何在数学上找到物体所面对的方向。
换句话说,Unity 是如何计算“transform.forward”向量的?
您应该阅读球极坐标,注意常规极角和欧拉角之间的区别。但无论如何,公式是(cos(pitch)cos(yaw), cos(pitch)sin(yaw), sin(pitch))。请注意,滚动在此处无效。
(cos(pitch)cos(yaw), cos(pitch)sin(yaw), sin(pitch))