Table of Contents

Struct HeightmapSample

Namespace
Trailblazer.Heightmaps
Assembly
Trailblazer.dll

Result of a deterministic heightmap ground sample.

public readonly struct HeightmapSample
Inherited Members

Constructors

HeightmapSample(string, Vector3d, Fixed64, Fixed64)

Creates a new heightmap sample result.

public HeightmapSample(string layerName, Vector3d queryPosition, Fixed64 groundY, Fixed64 distanceFromSelectionY)

Parameters

layerName string
queryPosition Vector3d
groundY Fixed64
distanceFromSelectionY Fixed64

Properties

DistanceFromSelectionY

Absolute distance between query contact Y and the sampled ground Y used for layer selection.

public Fixed64 DistanceFromSelectionY { get; }

Property Value

Fixed64

GroundY

Environment ground/contact Y resolved from the layer.

public Fixed64 GroundY { get; }

Property Value

Fixed64

LayerName

Name of the registered layer that supplied the sample.

public string LayerName { get; }

Property Value

string

QueryPosition

World position used for the sample query.

public Vector3d QueryPosition { get; }

Property Value

Vector3d