majorAxis

Determines the axis along which the box has its greatest dimension.

The axis is selected based on the comparison of the dimensions of the box:

  • If the width is the largest or equal to the largest dimension, the result is Vector3.Axis.X.

  • If the height is the largest or equal to the largest dimension, the result is Vector3.Axis.Y.

  • Otherwise, the result is Vector3.Axis.Z.

This property provides a way to identify the major axis of a box for dimensional computations or direction-based operations.