component.volumecomponent
Component that provides a spatial volume to an entity.
- struct VolumeComponent;
Component that provides a spatial volume to an entity.
- enum Type;
Volume types.
- this(ref Node yaml);
Load from a YAML node. Throws YAMLException on error.
- this(const(Rect!(float)) aabbox);
Construct an axis aligned bounding box from a rectangle.
- const pure nothrow @property Type type();
- const pure nothrow @property ref const(Rectf) aabbox();
Get the volume as an AABBox (type must be AABBox).