Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · member function

UOrreryTerrainFollowSubsystem::

RulesForFoliage

The rules a foliage type follows the ground with: Mode, the type's slope limit (GroundSlopeAngle.Max) and alignment (AlignToNormal, AlignMaxAngle), and the project's clear margin.

Declaration

static OrreryTerrain::Native::FFollowRules RulesForFoliage(const UFoliageType* Type, EOrreryTerrainFollowMode Mode);
Header
#include "OrreryTerrainFollowSubsystem.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Game thread. (the rule of UOrreryTerrainFollowSubsystem)

Description

The editor's follow applies the same rules.

Parameters

NameTypeDefaultMeaning
Typeconst UFoliageType*—

The foliage type; null for a component tagged OrreryTerrain.Follow (no slope limit, no alignment).

ModeEOrreryTerrainFollowMode—

The type's mode, as UOrreryTerrainFollowSettings::ModeFor gives it.