# Sandbox.Mapping.Door

- Kind: class
- Namespace: `Sandbox.Mapping`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Component](/api/Sandbox.Component)
- Modifiers: sealed

## Constructors

- [`Door`](/api/Sandbox.Mapping.Door/.ctor)

## Properties

- [`AnimationCurve`](/api/Sandbox.Mapping.Door/AnimationCurve): Animation curve to use, X is the time between 0-1 and Y is how much the door is open to its target angle from 0-1.
- [`AutoClose`](/api/Sandbox.Mapping.Door/AutoClose): Automatically close after opening.
- [`AutoCloseDelay`](/api/Sandbox.Mapping.Door/AutoCloseDelay): Delay before automatically closing (in seconds). -1 means stay open.
- [`CloseFinishedSound`](/api/Sandbox.Mapping.Door/CloseFinishedSound): Sound to play when a door has finished closing.
- [`CloseSound`](/api/Sandbox.Mapping.Door/CloseSound): Sound to play when a door is closed.
- [`CloseTooltipDescription`](/api/Sandbox.Mapping.Door/CloseTooltipDescription)
- [`CloseTooltipIcon`](/api/Sandbox.Mapping.Door/CloseTooltipIcon)
- [`CloseTooltipTitle`](/api/Sandbox.Mapping.Door/CloseTooltipTitle)
- [`IsLocked`](/api/Sandbox.Mapping.Door/IsLocked): Is this door locked?
- [`IsUsable`](/api/Sandbox.Mapping.Door/IsUsable): Can this door be opened by pressing it.
- [`LinkedDoor`](/api/Sandbox.Mapping.Door/LinkedDoor): Optional linked door that opens when this door opens. Useful for double doors.
- [`LockedSound`](/api/Sandbox.Mapping.Door/LockedSound): Sound to play when a door is interacted with while locked.
- [`LockedTooltipDescription`](/api/Sandbox.Mapping.Door/LockedTooltipDescription)
- [`LockedTooltipIcon`](/api/Sandbox.Mapping.Door/LockedTooltipIcon)
- [`LockedTooltipTitle`](/api/Sandbox.Mapping.Door/LockedTooltipTitle)
- [`Mode`](/api/Sandbox.Mapping.Door/Mode): Whether this door rotates or slides.
- [`OnClose`](/api/Sandbox.Mapping.Door/OnClose): Called when the door is closed.
- [`OnOpen`](/api/Sandbox.Mapping.Door/OnOpen): Called when the door is opened. Receives the GameObject that opened it.
- [`OpenAwayFromPlayer`](/api/Sandbox.Mapping.Door/OpenAwayFromPlayer): Open away from the person who uses this door.
- [`OpenFinishedSound`](/api/Sandbox.Mapping.Door/OpenFinishedSound): Sound to play when a door is fully opened.
- [`OpenSound`](/api/Sandbox.Mapping.Door/OpenSound): Sound to play when a door is opened.
- [`OpenTooltipDescription`](/api/Sandbox.Mapping.Door/OpenTooltipDescription)
- [`OpenTooltipIcon`](/api/Sandbox.Mapping.Door/OpenTooltipIcon)
- [`OpenTooltipTitle`](/api/Sandbox.Mapping.Door/OpenTooltipTitle)
- [`Pivot`](/api/Sandbox.Mapping.Door/Pivot): Optional pivot point, origin will be used if not specified. The pivot's rotation defines the hinge axis - the door rotates around the pivot's up axis. Orient the pivot so its up axis points sideways to make a trapdoor.
- [`SlideOffset`](/api/Sandbox.Mapping.Door/SlideOffset): Local-space offset the door slides to when fully open.
- [`Speed`](/api/Sandbox.Mapping.Door/Speed): Speed. Degrees per second for rotating, units per second for sliding.
- [`StartOpen`](/api/Sandbox.Mapping.Door/StartOpen): Start in the open position.
- [`State`](/api/Sandbox.Mapping.Door/State)
- [`TargetAngle`](/api/Sandbox.Mapping.Door/TargetAngle): How far should the door rotate.

## Methods

- [`Close`](/api/Sandbox.Mapping.Door/Close): Closes the door. Does nothing if already closed or closing.
- [`Open`](/api/Sandbox.Mapping.Door/Open): Opens the door. Does nothing if already open or opening.
- [`Toggle`](/api/Sandbox.Mapping.Door/Toggle): Toggles the door between open and closed states.
