Log inGet started
Package

components.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

ecs.Skeleton

Spec for the Skeleton component, which maps to the native Skeleton. Binds an entity hierarchy as a skeleton for skinned animation.

Fields

  • rootEntityId — the root bone entity (the authored field).
  • rootBoneIndex, rootBoneReferenceY — engine-managed root-bone hints.
  • cachedTransforms — engine-managed cached bone transforms.

Usage

ecs.insertSync(id, ecs.Skeleton{ rootEntityId = rootBone })