Newer
Older
SproutServerMicro / src / main / java / org / ntlab / SproutServer / battles / BulletModel.java
s-bekki on 30 Nov 2017 642 bytes initial commit
package org.ntlab.SproutServer.battles;

import framework.model3D.ModelFactory;
import framework.model3D.Object3D;

public class BulletModel {
    String modelFileName = null;
    String animationFileName = null;

    public BulletModel(String modelFileName, String animationFileName) {
        this.modelFileName = modelFileName;
        this.animationFileName = animationFileName;
    }

    public Object3D createObject() {
        Object3D object3D = null;
        try {
            object3D = ModelFactory.loadModel(modelFileName, false, false).createObject();
        } catch (Exception e) {

        }
        return object3D;
    }
}