ConstBuilder-owned hero slot transform in the designed formation.
Authored node transform at the sampled time.
Formation anchor the slot is laid out around.
Sampled formation state: translation, facing offset and spacing scale.
OptionalbaseFacingDeg: number
Designed formation heading in degrees, default 0.
A new world transform for the promoted hero.
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 ofbaseFacingDeg + motion.facingOffsetDegdegrees about +Y applied afterinverse(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.