Struct · Ara
AcousticPortal
An opening (door, window, archway) connecting two zones. An empty zone name is outdoors.
public struct AcousticPortal : IComponent<AcousticPortal>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
A
public string A;First zone's name; empty means outdoors.
Default: "".
B
public string B;Second zone's name; empty means outdoors.
Default: "".
Position
public Vector3 Position;World-space center of the opening, supplied by the bridge.
Unit: m. Default: [0,0,0].
Width
public float Width;Opening width.
Unit: m. Range: [0.01, 1000]. Default: 1.
Height
public float Height;Opening height.
Unit: m. Range: [0.01, 1000]. Default: 2.
Open
public float Open;How open it is: 0 closed (blocks), 1 fully open. Drive from door state.
Range: [0, 1]. Default: 1.
Methods
Access
public static ref AcousticPortal Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in AcousticPortal value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.