Home Reference Source Repository
import Bone from 'dh3dlib/js/base/Bone.js'
public class | source

Bone

Bone basic class

Constructor Summary

Public Constructor
public

constructor

Member Summary

Public Members
public
public
public
public
public

childNo: int

public
public

ikTarget: int

public
public
public
public
public
public
public
public

parentNo: int

public
public
public
public
public

type: int

Method Summary

Public Methods
public

addChild(childBone: Bone): void

add child bone

public

clone(): Bone

copy bone data

public

initBoneData(): void

initialize bone data

public

removeChild(childBone: Bone): void

remove child bone

public

reset(): void

reset bone position

public

setBlendValue(): void

public
public
public

updateMatrix(): void

public

Public Constructors

public constructor source

constructor

Public Members

public blendPosition: Vector3 source

public blendRotation: Vector4 source

public bonePosition: Vector3 source

public childBoneArray: Array<Bone> source

public childNo: int source

public englishName: string source

public ikTarget: int source

public inflMatrix: Matrix source

public isKnee: boolean source

public localMatrix: Matrix source

public name: string source

public offset: Vector3 source

public offsetMatrix: Matrix source

public parentBone: Bone source

public parentNo: int source

public position: Vector3 source

public rotate: Vector4 source

public scale: Vector3 source

public scaleMatrix: Matrix source

public type: int source

Public Methods

public addChild(childBone: Bone): void source

add child bone

Params:

NameTypeAttributeDescription
childBone Bone

Return:

void

public clone(): Bone source

copy bone data

Return:

Bone

new Bone object

public initBoneData(): void source

initialize bone data

Return:

void

public removeChild(childBone: Bone): void source

remove child bone

Params:

NameTypeAttributeDescription
childBone Bone

Return:

void

public reset(): void source

reset bone position

Return:

void

public setBlendValue(): void source

Return:

void

public setBlendValueRecursive(): void source

Return:

void

public updateInflMatrix(): void source

Return:

void

public updateMatrix(): void source

Return:

void

public updateMatrixRecursive(): void source

Return:

void