AutoMovie API
    Preparing search index...

    Variable composeFormationHeroTransformConst

    composeFormationHeroTransform: (
        base: IAutoMovieTransform,
        source: IAutoMovieTransform,
        anchor: IAutoMovieVector3,
        motion: IAutoMovieFormationMotionState,
        baseFacingDeg?: number,
    ) => IAutoMovieTransform = ...

    Compose a promoted hero's source-authored node transform with formation placement and motion.

    Translation keeps authored node/object-motion displacement relative to the builder-owned hero slot. Rotation applies the current formation facing before the authored rotation relative to that slot, while scale remains source-owned.

    Exactly: translation is the slot position carried through the sampled formation state by transformFormationPoint, plus source.translation - base.translation, and rotation is a yaw of baseFacingDeg + motion.facingOffsetDeg degrees about +Y applied after inverse(base.rotation) * source.rotation. The authored displacement is added in world axes, so it is neither turned by the formation's facing nor scaled by its spacing. Units are metres and degrees. Geometry measurement and the viewer's instanced formation both place heroes through here.

    Type Declaration