Table of Contents

Class NavDoorwayInfo

Namespace
S1MAPI.Building
Assembly
S1MAPI_Mono.dll

Records the position and dimensions of a doorway for NavMesh source filtering and ramp/ground plane generation. Used for both exterior and interior doorways.

public sealed class NavDoorwayInfo
Inheritance
NavDoorwayInfo
Inherited Members

Constructors

NavDoorwayInfo(Vector3, float, float, Vector3, float, Vector3?, bool)

Create a doorway info record.

public NavDoorwayInfo(Vector3 center, float width, float height, Vector3 inwardNormal, float wallThickness, Vector3? stairBasePosition = null, bool isInterior = false)

Parameters

center Vector3

Door center in local building coordinates (Y=0)

width float

Doorway width in meters

height float

Doorway height in meters

inwardNormal Vector3

Unit vector perpendicular to the wall face

wallThickness float

Wall thickness in meters

stairBasePosition Vector3?

Position at stair base (ground level), or null if no stairs

isInterior bool

True for interior wall doorways between rooms

Properties

Center

Center of the doorway in local building coordinates (Y=0, floor level).

public Vector3 Center { get; }

Property Value

Vector3

Height

Height of the doorway opening in meters.

public float Height { get; }

Property Value

float

InwardNormal

Unit vector perpendicular to the wall face in the XZ plane.

public Vector3 InwardNormal { get; }

Property Value

Vector3

IsInterior

Whether this doorway is an interior wall doorway (between rooms) rather than an exterior wall doorway.

public bool IsInterior { get; }

Property Value

bool

StairBasePosition

Position at the base of the stairs in local building coordinates (ground level). Null for interior doorways or exterior doorways without stairs.

public Vector3? StairBasePosition { get; }

Property Value

Vector3?

WallThickness

Thickness of the wall containing this doorway.

public float WallThickness { get; }

Property Value

float

Width

Width of the doorway opening in meters.

public float Width { get; }

Property Value

float