| 123456789101112131415161718192021222324252627 |
- import * as THREE from 'three';
- class fcFan {
- model;
- modelName = 'jbfj_fc';
- group = null;
- constructor(model) {
- this.model = model;
- }
- mountedThree() {
- return new Promise((resolve) => {
- this.model.setModel(this.modelName).then((gltf) => {
- this.group = gltf.scene;
- this.group.position.set(-0.056, -0.007, 3.494)
- resolve(null);
- });
- });
- }
- destroy() {
- this.model = null;
- this.group = null;
- }
- }
- export default fcFan;
|