Skip to content

Fixed Box

Struct · FFixedBox

#include "Types/Box.h"

deterministic: safe in simulation code

Axis-aligned bounding box using fixed-point arithmetic. Represents a box defined by minimum and maximum corners.

FFixedVector Min

Editable in defaults and on instances · Blueprint read and write

Corner with the smallest X, Y and Z.

FFixedVector Max

Editable in defaults and on instances · Blueprint read and write

Corner with the largest X, Y and Z.

C++ members (23)
  • static FFixedBox FromCenterAndExtent(const FFixedVector& Center, const FFixedVector& Extent); Creates a box from center and extent (half-size).
  • static FFixedBox InvalidBox(); Creates an invalid box (Min > Max, useful for expanding).
  • static FFixedBox FromBox(const FBox& Box); Converts from Unreal’s FBox.
  • FBox ToBox() const; Converts to Unreal’s FBox.
  • FFixedVector GetCenter() const; Returns the center of the box.
  • FFixedVector GetExtent() const; Returns the extent (half-size) of the box.
  • FFixedVector GetSize() const; Returns the size (full dimensions) of the box.
  • FFixedPoint GetVolume() const; Returns the volume of the box.
  • bool IsValid() const; Returns true if the box is valid (Min <= Max in all axes).
  • bool Contains(const FFixedVector& Point) const; Returns true if the box contains the given point.
  • bool Intersects(const FFixedBox& Other) const; Returns true if this box intersects with another box.
  • bool IsInside(const FFixedBox& Other) const; Returns true if this box is inside another box.
  • FFixedBox& ExpandToInclude(const FFixedVector& Point); Expands the box to include the given point.
  • FFixedBox& ExpandToInclude(const FFixedBox& Other); Expands the box to include another box.
  • FFixedBox& Expand(FFixedPoint Amount); Expands the box by a given amount in all directions.
  • FFixedBox GetExpanded(FFixedPoint Amount) const; Returns an expanded copy of the box.
  • FFixedBox& Translate(const FFixedVector& Offset); Translates the box by a vector.
  • FFixedBox GetTranslated(const FFixedVector& Offset) const; Returns a translated copy of the box.
  • bool operator==(const FFixedBox& Other) const;
  • bool operator!=(const FFixedBox& Other) const;
  • FFixedBox operator+(const FFixedVector& Offset) const;
  • FFixedBox& operator+=(const FFixedVector& Offset);
  • FString ToString() const;