AutoMovie API
    Preparing search index...

    Variable createAutoMovieBoneMotionConst

    createAutoMovieBoneMotion: (
        props: IAutoMovieCreateBoneMotion.IProps,
    ) => (
        bone: AutoMovieHumanoidBone,
    ) => {
        apply: (point: IAutoMovieVector3) => IAutoMovieVector3;
        rotation: IAutoMovieQuaternion;
    } = ...

    Build each bone's rigid motion from rest to pose, the transform a point or a direction fixed in that bone undergoes.

    Bone b carries a point p to P_b + Q_b R_b^-1 (p - O_b), with rest origin O_b and rotation R_b and posed origin P_b and rotation Q_b in model space, the rigid transform skinAutoMovieMesh applies per joint. Directions take the rotation Q_b R_b^-1 alone.

    Type Declaration

      • (
            props: IAutoMovieCreateBoneMotion.IProps,
        ): (
            bone: AutoMovieHumanoidBone,
        ) => {
            apply: (point: IAutoMovieVector3) => IAutoMovieVector3;
            rotation: IAutoMovieQuaternion;
        }
      • Parameters

        • props: IAutoMovieCreateBoneMotion.IProps

          Build each bone's rigid motion from rest to pose, the transform a point or a direction fixed in that bone undergoes.

          Bone b carries a point p to P_b + Q_b R_b^-1 (p - O_b), with rest origin O_b and rotation R_b and posed origin P_b and rotation Q_b in model space, the rigid transform skinAutoMovieMesh applies per joint. Directions take the rotation Q_b R_b^-1 alone.

          • posed: readonly IAutoMovieResolvedBone[]

            Resolved posed transforms in the same frame as rest. A requested bone missing from either array throws when resolved. Preserve the records while the resolver lives: rotations are cached, while point application reads retained origins.

          • rest: readonly IAutoMovieResolvedBone[]

            Resolved rest origins in metres and rotations in the shared model frame. Indexed by bone identity, not array position; duplicate identities use the last record. The returned resolver retains these records.

        Returns (
            bone: AutoMovieHumanoidBone,
        ) => {
            apply: (point: IAutoMovieVector3) => IAutoMovieVector3;
            rotation: IAutoMovieQuaternion;
        }

        A lookup giving a bone's rotation and point map.

    Error from the lookup when a bone is missing from either list.