Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain · namespace

OrreryTerrain::

Units

Declared in OrreryTerrain. Its members are listed below, by kind.

Functions

  • CmToMetres

    Centimetres to metres.

  • MetresToCm

    Metres to centimetres.

  • CmToMm

    Centimetres to whole millimetres, rounded half away from zero (as Native::MetresToMm rounds metres).

  • MmToCm

    Whole millimetres to centimetres.

  • ToTerrain

    A world position, cm, as Tier-1 world metres.

  • ToUnreal

    A Tier-1 world position, metres, as an Unreal world position, cm.

  • SplatSteps

    The Paint steps of one splat dab: Dab with its Kind set to Paint, and each used channel's layer and mask, in channel order (red, green, blue, alpha).

  • ToBrush

    A Blueprint brush as Tier 1 states it: fixed point, millimetres relative to the terrain origin.

  • ToSculptLimits

    The sculpt limits, cm, as the authority's millimetre rules.

  • FromSculptLimits

    The authority's millimetre rules in cm: the inverse of ToSculptLimits, exact for whole millimetres.

Constants

NameTypeDefaultMeaning
kCmPerMetredouble100.0

The one conversion between Unreal units and the terrain's (the Tier 3 boundary).

Unreal speaks centimetres and world FVector. Tier 1 speaks world metres for positions and query heights, and whole millimetres for feature vertices, formation heights and brushes. Every Blueprint call of UOrreryTerrainSubsystem converts through these and nowhere else. The terrain's grid origin is a world position in metres, so world cm and world m differ by the factor only; frame offsets to the terrain origin are Tier 1's (FContractFrame).