API

Function computeMaxExtents

  • Computes the maximum extents of the given meshes considering animation, skeleton, and morph targets.

    Parameters

    • meshes: AbstractMesh[]

      The array of meshes to compute

    • animationGroup: Nullable<AnimationGroup> = null

      An optional animation group to animate (must be started to take effect)

    • animationStep: number = ...

      An optional value indicating the number of seconds to step while looping through the given animation group

    Returns { maximum: Vector3; minimum: Vector3 }[]

    An array of world space extents corresponding to the given meshes