mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
21 lines • 595 B
JavaScript
import { treeDefaults, treeSchema } from "../../interface/ITree";
import Model from "../Model";
const url = "https://unpkg.com/lingo3d-forest@1.0.0/assets/";
export default class Tree extends Model {
static componentName = "tree";
static defaults = treeDefaults;
static schema = treeSchema;
constructor() {
super();
this.scale = 4;
this.preset = "tree1";
}
_preset = "";
get preset() {
return this._preset;
}
set preset(val) {
this.src = url + val + ".glb";
}
}
//# sourceMappingURL=index.js.map