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.
嗨,我需要使用将使用 ARToolKit 生成的 16 的浮点数组在 Unity iphone 项目中动态转换对象。什么是统一 3d 中用于更改转换的 api。
GameObjecUnity 中的每个t 都Transform附加一个组件。这可以从其他组件使用
GameObjec
Transform
Transform trans = gameObject.transform
该组件具有可用于更改对象转换的属性。其中有例如
position (Vector3) rotation (Quaternion) eulerAngles (Vector3) localScale (Vector3) ...
您应该能够从 4x4 矩阵中提取值并将它们应用于这些属性。我认为没有办法直接将矩阵应用于游戏对象。