Java3d 重置到新场景
我正在用 Java3D 开发一个游戏。我从文件中读取了所有级别信息并且工作正常。但现在我想通过从不同的文件读取数据来重新初始化场景。
如何重置场景?
我应该销毁整个canvas3D和宇宙对象吗?
I'm working on a game in Java3D. I read all my level info from a file and it works fine. But now I want to re-initialize the scene from reading data from a different file.
How do I reset the scene?
Should I just destroy the whole canvas3D and universe objects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谢谢 Mikeb,你让我走上了正轨。
我想通了。您需要分离分支组。
像这样:
Thanks Mikeb, you put me on the right track.
I figured it out. You need to detach the branchgroup.
Like this: