Rectangle Gizmo used for rectangle selection.

Hierarchy

  • GizmoRectangle

Constructors

Accessors

Methods

  • Returns the bounding box of the selection. The bounding box is the projection of the selection rectangle onto the plane coplanar to the closest hit of 5 raycasts: one in each corner and one in the center. X-----X | X | X-----X

    Returns

    The bounding box of the selection.

    Parameters

    • target: Box3 = ...

    Returns Box3

  • Performs a raycast from the camera through the five interest points and returns the closest hit position.

    Returns

    The position of the closest hit.

    Returns Vector3

  • Sets the two corner points defining the rectangle.

    Parameters

    • posA: Vector2

      The position of the first corner.

    • posB: Vector2

      The position of the second corner.

    Returns void

Generated using TypeDoc