Game Development Reference
In-Depth Information
There's moreā¦
Now that we have a scene, what's needed to load it into an application? Just the following
lines of code are needed, really:
Spatial scene = assetManager.loadModel("Scenes/
TestScene.j3o");
rootNode.attachChild(scene);
Add the preceding code in the
simpleInitApp()
method of
Main.java
.