Table of Contents

Class PointOfInterestTerraces

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

A pad's terraces (2026-10-18: hill towns): its ground levelled not to one height but to two to four, stepped up the fall line like a hillside's fields, with an earth bank between each pair and a ramp up every bank where a street climbs.

public static class PointOfInterestTerraces
Inheritance
PointOfInterestTerraces
Inherited Members

Remarks

One flat pad on a hillside cut its uphill half into the hill and stood its downhill half on fill, both as deep as the hill fell across it, and banked out a hundred metres to meet the slope. Terraced, each level is cut and filled only by the fall across its own band, and the town climbs the hill as old hill towns do.

The levels are bands across TerraceAxis (up the hill), split at TerraceSteps (metres along it from the pad's centre). Each step's bank rises at BankGrade (42°, just under what is walked), except across RampHalfWidth either side of its ramp (TerraceRamps, metres across the axis), where it is graded at RampGrade for a cart, its sides cut at the bank's grade.

Fields

BankGrade

The grade of a bank between two levels (rise over run): about 42°.

public const float BankGrade = 0.9

Field Value

float

RampGrade

The grade a ramp climbs a bank at: about 11°, a street's.

public const float RampGrade = 0.2

Field Value

float

Methods

Across(Vector2)

The across-axis unit vector (x east, y north): the axis turned a right angle clockwise.

public static Vector2 Across(Vector2 axis)

Parameters

axis Vector2

Returns

Vector2

BandAt(in PointOfInterestPad, float, float)

The terrace (0 lowest) a scene position's band is, by where it lies along the axis.

public static int BandAt(in PointOfInterestPad pad, float x, float z)

Parameters

pad PointOfInterestPad
x float
z float

Returns

int

BankHalf(in PointOfInterestPad, int)

Half the run of step i's bank along the axis, metres.

public static float BankHalf(in PointOfInterestPad pad, int i)

Parameters

pad PointOfInterestPad
i int

Returns

float

LevelAt(in PointOfInterestPad, float, float)

The pad's levelled ground at a scene position: its height, or on a terraced pad its band's level, the bank's slope across a step and the ramp's grade where the ramp climbs it.

public static float LevelAt(in PointOfInterestPad pad, float x, float z)

Parameters

pad PointOfInterestPad
x float
z float

Returns

float

OnSlope(in PointOfInterestPad, float, float, float)

Whether a scene position is on a bank or a ramp (not on a level), with margin metres more along the axis either way: where nothing is built.

public static bool OnSlope(in PointOfInterestPad pad, float x, float z, float margin)

Parameters

pad PointOfInterestPad
x float
z float
margin float

Returns

bool

RampHalf(in PointOfInterestPad, int)

Half the run of step i's ramp along the axis, metres.

public static float RampHalf(in PointOfInterestPad pad, int i)

Parameters

pad PointOfInterestPad
i int

Returns

float

Terraced(in PointOfInterestPad)

True when the pad is terraced.

public static bool Terraced(in PointOfInterestPad pad)

Parameters

pad PointOfInterestPad

Returns

bool