Class TrailblazerHeightmapService
- Namespace
- Trailblazer.Heightmaps
- Assembly
- Trailblazer.dll
Context-owned API for registering and sampling deterministic heightmap layers.
public sealed class TrailblazerHeightmapService
- Inheritance
-
TrailblazerHeightmapService
- Inherited Members
Methods
IsRegistered(string)
Returns true when a layer with the supplied name is registered.
public bool IsRegistered(string layerName)
Parameters
layerNamestring
Returns
Register(HeightmapSurface, Fixed64, Fixed64, int)
Registers a heightmap layer for this context.
public bool Register(HeightmapSurface surface, Fixed64 minSelectionY, Fixed64 maxSelectionY, int priority = 0)
Parameters
surfaceHeightmapSurfaceminSelectionYFixed64maxSelectionYFixed64priorityint
Returns
Reset()
Clears all heightmap layers registered to this context.
public void Reset()
TryGetRegistration(string, out HeightmapLayerRegistration)
Attempts to retrieve context-local registration metadata for a layer.
public bool TryGetRegistration(string layerName, out HeightmapLayerRegistration registration)
Parameters
layerNamestringregistrationHeightmapLayerRegistration
Returns
TrySampleGround(Vector3d, string?, out HeightmapSample)
Attempts to sample the preferred layer when valid, then falls back to deterministic candidate selection.
public bool TrySampleGround(Vector3d worldPosition, string? preferredLayerName, out HeightmapSample sample)
Parameters
worldPositionVector3dpreferredLayerNamestringsampleHeightmapSample
Returns
TrySampleGround(Vector3d, out HeightmapSample)
Attempts to sample the best deterministic registered layer that contains the query X/Z and contact Y.
public bool TrySampleGround(Vector3d worldPosition, out HeightmapSample sample)
Parameters
worldPositionVector3dsampleHeightmapSample
Returns
Unregister(string)
Unregisters a heightmap layer by name.
public bool Unregister(string layerName)
Parameters
layerNamestring