I’m trying to access a zip file located in my Models file with the following code.
private void createEnemy(float x, float y, float z) {
assetManager.registerLocator("assets/Models/ubot.zip", ZipLocator.class);
Spatial enemy = assetManager.loadModel("main.scene");
CollisionShape shape = CollisionShapeFactory.createMeshShape(enemy);
RigidBodyControl phys = new RigidBodyControl(shape, 0.5f);
enemy.addControl(phys);
enemies.attachChild(enemy);
bulletAppState.getPhysicsSpace().add(phys);
}
When I attempt to create my spatial I get a runtime error: AssetNotFoundException: main.scene
What do I need to type to access the zip file when making my spatial?