FCBP_WorldEffector

Terrain generation parameters. Passed with .worldEffector(...).

Setters

Setter Effect
worldMakerClass(TSubclassOf<UCAbstractWorldmaker>) World maker that builds the terrain. If null, defaults to the procedural-mesh maker.
actorWakeUpDistanceMeter(float) Distance (meters) at which NPCs on the terrain pop on/off.
cellSizeMeter(float) Size of one terrain tile, in meters.
numberOfCellToDrawAround(int) How many tiles are drawn around the pawn.
nbMinPointPerCellSide(int) Minimum mesh resolution per cell side.
maxLODFactor(int) Maximum LOD reduction factor for distant tiles.
followAndBuildTilesAroundPawn(bool) When true, tiles stream around the moving pawn. When false, the world is static (no tracking). Default true.
collisionOnFullLODOnly(bool) When true, only full-resolution tiles get collision.
removeFurthestTiles(bool) When true, farthest tiles are removed — only effective if followAndBuildTilesAroundPawn is true.
curvaturLODReduction(double) LOD reduction driven by curvature; clamped to ≥ 0. 0 = full resolution everywhere.
calculateNormal(bool) When true, computes mesh normals. Default true.
poolSizeStart(int) Tile pool size at boot.
poolSizeRun(int) Tile pool size at runtime.

Example

FCBP_WorldEffector effector = FCBP_WorldEffector()
    .worldMakerClass(retrieveClass<UCAbstractWorldmaker>("WORLD_MAKER"))
    .actorWakeUpDistanceMeter(100.0f)
    .cellSizeMeter(200.0f)
    .numberOfCellToDrawAround(40)
    .nbMinPointPerCellSide(8)
    .maxLODFactor(10)
    .followAndBuildTilesAroundPawn(true)
    .collisionOnFullLODOnly(false)
    .removeFurthestTiles(false)
    .curvaturLODReduction(4.0)
    .calculateNormal(true)
    .poolSizeStart(64)
    .poolSizeRun(64);