use of com.jme3.scene.VertexBuffer.Format in project TeachingInSimulation by ScOrPiOzzy.
the class ConnectionUtil method getJackTerm.
/**
* 添加插头模型
* @return
*/
public static Spatial getJackTerm(Format format) {
AssetManager assetManager = Dispatcher.getIns().getMainApp().getAssetManager();
Spatial spatial = assetManager.loadModel("Models/Chatou.j3o");
if (format == null) {
return spatial;
}
String mdlRef = format.getPO().getMdlRef();
if (Util.notEmpty(mdlRef)) {
spatial = assetManager.loadModel(mdlRef);
}
return spatial;
}
Aggregations