I added Node to my Model in SceneCompose

Hi, everyone,
I added a Node to my Model in SceneComposer, I wonder how to attach other spatials to Node I added. Can it be done by code?

You must first load that model by code, eg:

Node model = (Node) assetManager.loadModel("Model/myModel.j3o");

Once you have it, you can attach anything to any node in that model, eg:

Spatial otherModel = ...;
model.attachChild(otherModel);

or, if you want to attach it to a subchild:

((Node) model.getChild("subChild")).attach(otherModel);

Anyway, you should take a look to the beginners tutorials in the wiki.

Thanks a lot, Got it:blush: