Class NavDoorwayInfo
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
centerVector3Door center in local building coordinates (Y=0)
widthfloatDoorway width in meters
heightfloatDoorway height in meters
inwardNormalVector3Unit vector perpendicular to the wall face
wallThicknessfloatWall thickness in meters
stairBasePositionVector3?Position at stair base (ground level), or null if no stairs
isInteriorboolTrue 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
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
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
Width
Width of the doorway opening in meters.
public float Width { get; }