# Sandbox.Volumes.SceneVolume

A generic way to represent volumes in a scene. If we all end up using this instead of defining our own version
in everything, we can improve this and improve everything at the same time.

- Kind: struct
- Namespace: `Sandbox.Volumes`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`SceneVolume`](/api/Sandbox.Volumes.SceneVolume/.ctor)

## Fields

- [`Box`](/api/Sandbox.Volumes.SceneVolume/Box)
- [`Capsule`](/api/Sandbox.Volumes.SceneVolume/Capsule)
- [`Sphere`](/api/Sandbox.Volumes.SceneVolume/Sphere)
- [`Type`](/api/Sandbox.Volumes.SceneVolume/Type)

## Methods

- [`DrawGizmos`](/api/Sandbox.Volumes.SceneVolume/DrawGizmos): Draws an editable sphere/box gizmo, for adjusting the volume
- [`GetBounds`](/api/Sandbox.Volumes.SceneVolume/GetBounds): Returns the axis-aligned bounding box that encloses the current volume.
- [`GetEdgeDistance`](/api/Sandbox.Volumes.SceneVolume/GetEdgeDistance): Calculates the shortest distance from the specified world position to the edge of this volume.
- [`GetVolume`](/api/Sandbox.Volumes.SceneVolume/GetVolume): Get the actual amount of volume in this shape. This is useful if you want to make a system where you prioritize by volume size. Don't forget to multiply by scale!
- [`Test`](/api/Sandbox.Volumes.SceneVolume/Test): Is this point within the volume
