Vixen
dd8b0a81
csharp
public readonly record struct TerrainPlacement

One terrain standing in a world: the heightfield, and where its low corner is.

Read the guide page for this →

Remarks

⚠ The terrain's identity is the placement's identity. Whoever resolves a scene's references is expected to hand back the same Terrain object frame after frame, which is what lets a consumer keep per-terrain state — a set of collision bodies, say — keyed by it. A source that rebuilt the map every frame would make every consumer rebuild everything every frame, and nothing would say so.

Fields and properties (2)

  • public Terrain Terrain

    The heightfield.

  • public Vector3 Origin

    Where sample (0, 0) sits in world metres — the terrain entity's translation.

Methods (1)

  • public TerrainPlacement(Terrain Terrain, Vector3 Origin)

    One terrain standing in a world: the heightfield, and where its low corner is.

Used by (8)

  • ITerrainPlacementsVixen.Terrain
  • PlacedVixen.Terrain.Physics.Tests
  • TerrainColliderSystemVixen.Terrain.Physics
  • TerrainColliderSystemTestsVixen.Terrain.Physics.Tests
  • TerrainSceneSourceVixen.Rendering.Terrain
  • PlacedVixen.Editor.Terrain.Physics.Tests
  • ScenePlacementsVixen.Editor.Terrain.Physics
  • SculptedGroundTestsVixen.Editor.Terrain.Physics.Tests