component.volumecomponent - ICE 0.1 API documentation

ICE 0.1 API documentation

# 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();

    Get type of the volume.

  const pure nothrow @property ref const(Rectf) aabbox();

    Get the volume as an AABBox (type must be AABBox).

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.