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.
我正在尝试与 instancedMesh 中的对象进行交互。我在这里设置了一个示例,它使用了 react-three-fiber 和一些 drei,但希望原理是相同的。
当我单击一个立方体时,我想获取该对象的信息,目的是将该立方体的位置设置为不同的位置。但是,当使用 getMatrixAt() 时,它返回未定义。
我看过一些例子,主要是这里和另一个这里,但我似乎无法让我的以类似的方式工作。
我的预感是这与我正在传递的矩阵值有关,但我不确定。
对此的任何帮助将不胜感激!