Documentation / @imvu/cal3d / Bone
Class: Bone
Defined in: packages/cal3d/src/Skeleton.ts:39
One bone (node) of a Skeleton.
translation/rotation place the bone relative to its parent (the bind pose); localTranslation/localRotation are the inverse bind pose — the transform from model space into this bone's space, which skinning applies before the bone's animated world transform.
Constructors
Constructor
new Bone(init): Bone;Defined in: packages/cal3d/src/Skeleton.ts:54
Parameters
| Parameter | Type |
|---|---|
init | BoneInit |
Returns
Bone
Properties
lightColor
lightColor: Color;Defined in: packages/cal3d/src/Skeleton.ts:49
Light color as RGB floats (a is unused).
lightType
lightType: number;Defined in: packages/cal3d/src/Skeleton.ts:47
A LightType; anything but None makes this bone a light.
localRotation
localRotation: Quaternion;Defined in: packages/cal3d/src/Skeleton.ts:45
localTranslation
localTranslation: Vector3;Defined in: packages/cal3d/src/Skeleton.ts:44
name
name: string;Defined in: packages/cal3d/src/Skeleton.ts:40
parentId
parentId: number;Defined in: packages/cal3d/src/Skeleton.ts:41
rotation
rotation: Quaternion;Defined in: packages/cal3d/src/Skeleton.ts:43
skeleton
skeleton: Skeleton | null = null;Defined in: packages/cal3d/src/Skeleton.ts:52
Internal
Set by the owning skeleton.
translation
translation: Vector3;Defined in: packages/cal3d/src/Skeleton.ts:42
Accessors
children
Get Signature
get children(): Bone[];Defined in: packages/cal3d/src/Skeleton.ts:74
Returns
Bone[]
id
Get Signature
get id(): number;Defined in: packages/cal3d/src/Skeleton.ts:66
This bone's index in its skeleton (what meshes and animations refer to), or -1 if detached.
Returns
number
isLight
Get Signature
get isLight(): boolean;Defined in: packages/cal3d/src/Skeleton.ts:83
Returns
boolean
isRoot
Get Signature
get isRoot(): boolean;Defined in: packages/cal3d/src/Skeleton.ts:79
Returns
boolean
parent
Get Signature
get parent(): Bone | null;Defined in: packages/cal3d/src/Skeleton.ts:70
Returns
Bone | null