MD Package Technical & APi Documentation
MDG_HexagonGrid :: MD_GeometryBase
Namespace: MDPackage.Geometry
Procedural hexagon-grid generator at runtime in Unity Engine.
Read more here (Online documentation slide)
Public Methods
public void MDGHexagon_ChangePlanarHexagon(bool isPlanar)
public void MDGHexagon_RevertTriangles(bool revert)

// Modify spatial Hexagon Grid with min and max values. Process value corresponds to the randomized height
public void MDGHexagon_ModifyMesh(float min = 0, float max = 0, float processValue = 0)
// Randomize hexagon grid height by the specific min and max values
public void MDGHexagon_RandomizeHeight(float min, float max)
// Randomize hexagon grid height by the uniform value
public void MDGHexagon_RandomizeHeight(float uniformValue)
// React the hexagon grid with any audio - requires spacial hexagon grid
public void MDGHexagon_SoundReact(MDM_SoundReact mdmsr)

public static GameObject CreateGeometry_HexagonGrid()
public static GameObject CreateGeometry_PlanarHexagon()
public static GameObject CreateGeometry_SpatialHexagon()
Public Fields and Properties
public float hexaCellSize = 1;
[Range(0.0f, 10.0f)] public float hexaOffsetX = 0.0f;
[Range(0.0f, 10.0f)] public float hexaOffsetZ = 0.0f;

public float hexaMaximumHeightRange = 1;
public float hexaMiminumHeightRange = 0.1f;

public bool IsPlanarHexagon { get; }
public bool IsTrianglesReverted { get; }