Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript
345 B
Raw Blame
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
  }
}