n-skeleton-parent

altspace/components. n-skeleton-parent

Parents an entity to a joint on the avatar skeleton.

Example
<a-sphere n-skeleton-parent='part: head'></a-sphere>

Extends

Members

index :int

Bone index. e.g. Which knuckle joint to attach to.

Default Value:
  • 0

part :string

One of 'eye, 'head', 'neck', 'spine', 'hips', 'upper-leg', 'lower-leg', 'foot', 'toes', 'shoulder', 'upper-arm', 'lower-arm', 'hand', 'thumb', 'index', 'middle', 'ring' or 'pinky'.

side :string

Side of the body. Either 'left', 'center' or 'right'

Default Value:
  • "center"

userId :int

Id of the user to which the entity should be attached. Defaults to the local user.