AutoMovie API
    Preparing search index...

    Function humanCrowdGroupFormation

    • Compose density-sensitive walking slots around the centre of a pedestrian group's course. For the two- to four-person groups measured by Moussaïd et al. (2010, https://doi.org/10.1371/journal.pone.0010047, Table 1 and Fig. 4), sparse groups walk abreast and higher-density groups bend their outer members forward. The low-density bearings are set to 90 degrees because the study found no significant departure from abreast there. Interpolation between the two populations is an authored approximation. Densities outside the observations use the nearer endpoint.

      Give each member's walking action its slot in the returned formation. Plan the supplied frame from the group's centroid and check that the placed slots clear obstacles along the course, including while turning. A summed-shoulder-breadth disc can miss an outer slot. The result describes relative slots only.

      Parameters

      • frame: IAutoMovieMotionHumanFormation.Frame

        The group centre and facing over film time.

      • halfBreadths: readonly number[]

        Positive shoulder half breadths in metres, in left-to-right member order.

      • density: number

        Authored pedestrian density in people per square metre, finite and nonnegative.

      Returns IAutoMovieMotionHumanFormation

      Formation blocks in member order for station keeping.

      When the member count, half breadths or density are invalid.