Struct DoorShapeConfig
Per-door cube geometry parameters consumed by WithDoors(float, IRandomSource, DoorShapeConfig?). The instantiator spawns one thin cube per detected door cell with these dimensions; the cube acts as the door leaf and is the GameObject the caller wires up with sliding / sight-blocking behaviour after Build() returns.
Inherited Members
Namespace: Scylla.Core.Util.ProceduralMapGen
Assembly: ScyllaCore.dll
Syntax
public readonly struct DoorShapeConfig
Remarks
The door leaf is oriented automatically based on the detected DoorAxis:
when the passage runs east-west (X) the leaf spans the cell
along X with its Thickness measured along Z, and vice-versa for
Z. The leaf is centred vertically with bottom at y = 0
and top at y = Height.
Constructors
DoorShapeConfig(Color, float, float, float)
Initializes a new DoorShapeConfig with the specified leaf parameters.
Declaration
public DoorShapeConfig(Color tint, float height, float thickness, float cellInset = 0.05)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | tint | Door leaf tint applied via |
| float | height | Leaf height; should be at most the wall height. |
| float | thickness | Leaf thickness perpendicular to the passage. |
| float | cellInset | Inset along the passage axis so the leaf fits between flanking walls. |
Fields
CellInset
Inset applied to the leaf's length along the passage axis so it fits between the flanking walls. Typical value: small (e.g. 0.02 - 0.05 m).
Declaration
public readonly float CellInset
Field Value
| Type | Description |
|---|---|
| float |
Height
Door leaf height. Should be at most the wall height; typically a touch shorter so the leaf clears a top frame.
Declaration
public readonly float Height
Field Value
| Type | Description |
|---|---|
| float |
Thickness
Thickness of the leaf perpendicular to the passage. Small relative to the cell size (e.g. 0.1 - 0.2 m).
Declaration
public readonly float Thickness
Field Value
| Type | Description |
|---|---|
| float |
Tint
Tint applied to the door leaf via MaterialPropertyBlock.
Declaration
public readonly Color Tint
Field Value
| Type | Description |
|---|---|
| Color |