struct
PortalComponent
An opening between two rooms that sound travels through: a doorway, a hatch, a vent, a door with how far it stands open. The opening lies in the entity's local XY plane (Width along X, Height along Y) and the rooms it joins are found by probing Probe Depth along its local Z on either side — or named outright with Room A / Room B.
- Module
- Audio
- Header
#include "Audio/Components/PortalComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Loss through the opening is the portal's own, authored here, rather than the material table's: this is where a heavy fire door that is quieter than its wood suggests says so. A partly open door mixes the two states by energy — a crack lets through far more than its fraction of the area would suggest in dB, which is what an ajar door sounds like.
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
float | width | Default 1.2f. |
float | height | Default 2.2f. |
float | probeDepth | Default 0.6f. |
float | openFraction | 1 = fully open, 0 = shut. A door actor drives this at runtime. Default 1.0f. |
float | openAttenuationDb | Default 0.0f. |
float | openCutoffHz | Default 20000.0f. |
float | closedAttenuationDb | Default -9.0f. |
float | closedCutoffHz | Default 2500.0f. |
std::string | roomA | |
std::string | roomB |
Generated from Audio/Components/PortalComponent.h via audio.json · Oct 26, 2026Version 1.0.0