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

TypeNameDescription
boolenabledDefault true.
floatwidthDefault 1.2f.
floatheightDefault 2.2f.
floatprobeDepthDefault 0.6f.
floatopenFraction1 = fully open, 0 = shut. A door actor drives this at runtime. Default 1.0f.
floatopenAttenuationDbDefault 0.0f.
floatopenCutoffHzDefault 20000.0f.
floatclosedAttenuationDbDefault -9.0f.
floatclosedCutoffHzDefault 2500.0f.
std::stringroomA
std::stringroomB
Generated from Audio/Components/PortalComponent.h via audio.json · Oct 26, 2026Version 1.0.0