Summary
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.
Constructors
Fields
Methods
| DrawGizmos |
Draws an editable sphere/box gizmo, for adjusting the volume |
| GetBounds |
Returns the axis-aligned bounding box that encloses the current volume. |
| GetEdgeDistance |
Calculates the distance between the specified world transform and a given world position. |
| 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 |
Is this point within the volume |