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.
私はJava3Dでゲームに取り組んでいます。ファイルからすべてのレベル情報を読み取ったところ、正常に動作しました。しかし今、別のファイルからデータを読み取ってシーンを再初期化したいと考えています。
シーンをリセットするにはどうすればよいですか?
canvas3D オブジェクトとユニバース オブジェクト全体を破棄する必要がありますか?
ありがとう、Mikeb、あなたは私を正しい軌道に乗せました。
私はそれを考え出した。ブランチグループをデタッチする必要があります。
このような:
if (sceneBG != null) { sceneBG.detach(); } sceneBG = new BranchGroup(); sceneBG.setCapability(BranchGroup.ALLOW_DETACH);