Class VisibilityBox
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
One info_visibility_box volume: an oriented box centred on its origin, held as six inward facing planes.
public sealed class VisibilityBoxInheritance
Constructors
VisibilityBox(VisibilityBoxMode, Vector3)
One info_visibility_box volume: an oriented box centred on its origin, held as six inward facing planes.
public VisibilityBox(VisibilityBoxMode mode, Vector3 size)Parameters
mode VisibilityBoxMode
What the box hides.
size Vector3
The full edge lengths along the box's own axes.
Properties
IsEnabled
Gets whether the box culls.
public bool IsEnabled { get; }Property Value
Mode
Gets what the box hides.
public VisibilityBoxMode Mode { get; }Property Value
Size
Gets the full edge lengths along the box's own axes.
public Vector3 Size { get; }Property Value
Methods
Contains(Vector3)
Whether a point is inside the box.
public bool Contains(Vector3 point)Parameters
point Vector3
Returns
Contains(in AABB)
Whether an axis aligned box lies entirely inside this one.
public bool Contains(in AABB bounds)Parameters
bounds AABB
Returns
Disable()
Disables the box.
public void Disable()Enable(Matrix4x4)
Enables the box at a placement. An enabled box keeps its planes, so a new placement only takes effect after .
public void Enable(Matrix4x4 transform)Parameters
transform Matrix4x4
The box's rigid world transform; scale is ignored.
Touches(in AABB)
Whether an axis aligned box reaches the inner side of every plane. Exact for a box along the world axes; for a rotated one it can also pass bounds just outside a corner or edge.
public bool Touches(in AABB bounds)Parameters
bounds AABB

