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.
我是 react vr 世界的新手,我从一些网站学习了 react vr 的基础知识。我也厌倦了一些示例项目。我跟着这个教程
虽然我从许多网站上搜索过,但我不知道如何在内部pano或任何其他 vr中移动头像components。任何人都可以告诉/帮助/指导在 React vr pano 中移动头像。或者建议我一些教程来解释化身在 pano 中的移动。
pano
components
据我了解,您只想添加子组件,例如嵌套Model在里面Pano:
Model
Pano
<Pano> <Model></Model> </Pano>
就像在 HTML 中一样。你可以在这里阅读ReactVR 中的 JSX。
<Model style={{ transform: [{translate: [this.state.x,this.state.y,this.state.x]}] }} source source={{ obj: asset("earth.obj"), mtl: asset("earth.mtl") }} lit={true} />
//增加 x,y,z 的值,它看起来像是在运行 //或使用 setTimeout 函数更新 x,y,z 的值