Import a 3D Model and automatically assign and export animations
TypeScript
import { type Bone } from 'three'
export default class BoneCalculationData
{
public name: string = ''
public bone_object: Bone
public has_child_bone: boolean = false
assigned_vertices: any
constructor (bone: Bone) {
this.name = bone.name || ''
this.bone_object = bone
this.has_child_bone = bone.children.length > 0
}
}