Show / Hide Table of Contents

Class GeneratorSettingsGrid3D

Settings of the dungeon generator. The main purpose right now is to configure the cell size of the grid.

Inheritance
System.Object
GeneratorSettingsGrid3D
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public class GeneratorSettingsGrid3D : ScriptableObject

Fields

CellSize

Cell size of the grid that room templates and generated levels are placed on.

Declaration
public Vector3 CellSize
Field Value
Type Description
Vector3

ColliderSizeTolerance

When blocks are computed directly from colliders, this property specifies the tolerance of this computation.

Declaration
public float ColliderSizeTolerance
Field Value
Type Description
System.Single

OutlineComputationMode

Declaration
public RoomTemplateOutlineComputationModeGrid3D OutlineComputationMode
Field Value
Type Description
RoomTemplateOutlineComputationModeGrid3D

Methods

CellToLocal(Vector3)

Declaration
public Vector3 CellToLocal(Vector3 localPosition)
Parameters
Type Name Description
Vector3 localPosition
Returns
Type Description
Vector3

LocalToCell(Vector3)

Declaration
public Vector3Int LocalToCell(Vector3 localPosition)
Parameters
Type Name Description
Vector3 localPosition
Returns
Type Description
Vector3Int

LocalToCellInterpolated(Vector3)

Declaration
public Vector3 LocalToCellInterpolated(Vector3 localPosition)
Parameters
Type Name Description
Vector3 localPosition
Returns
Type Description
Vector3
In This Article
Back to top Generated by DocFX