Taos API Reference
    Preparing search index...

    Interface BoneAttachmentDoc

    Pins the GameObject to a skeleton joint of an Animator/GltfModel on the same object or an ancestor (gun muzzle / weapon socket / effect emitter).

    interface BoneAttachmentDoc {
        type: "BoneAttachment";
        joint?: number;
        position?: [number, number, number];
        rotation?: [number, number, number, number];
        inheritScale?: boolean;
    }
    Index

    Properties

    type: "BoneAttachment"
    joint?: number

    Joint index within the source skeleton.

    position?: [number, number, number]

    Local position offset in bone space.

    rotation?: [number, number, number, number]

    Local rotation offset (quaternion xyzw).

    inheritScale?: boolean

    Inherit the bone's scale (default true).