Import models form a custom asset

I am beginner in Java and Jmonkey I work with Eclipse.

I want to import models into an asset.
However, I do not understand how.there is an asset folder at the root of my project that contain the models to load.

So I guess it must define the path of the current asset, but how?

Spatial square = assetManager.loadModel (“Models / / testcarre.j3o”);
this does not work because it is not the object, the path is corect yet.

What I should do?


Add the assets folder to your classpath. Also check out the wiki, it contains all this information.

It’s work, thanks you :slight_smile: