Show / Hide Table of Contents

    Class AGSBoundingBoxes

    The bounding boxes used for the entity.

    Inheritance
    System.Object
    AGSBoundingBoxes
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public class AGSBoundingBoxes

    Properties

    | Improve this Doc View Source

    PreCropViewportBox

    Gets or sets the viewport bounding box before the object was cropped. This will usually be the same as the viewport box unless the object was actually cropped (i.e if it had the ICropSelfComponent attached, maybe inside a scrolling panel, for example).

    Declaration
    public AGSBoundingBox PreCropViewportBox { get; set; }
    Property Value
    Type Description
    AGSBoundingBox

    The pre crop render box.

    | Improve this Doc View Source

    TextureBox

    Gets or sets the texture box which specifies which part of the texture is used on the render box. Usually this would be the entire texture: (0,0)-(1,1), unless cropped by a cropping component. This should be only set from the engine.

    Declaration
    public FourCorners<Vector2> TextureBox { get; set; }
    Property Value
    Type Description
    FourCorners<Vector2>

    The texture box.

    | Improve this Doc View Source

    ViewportBox

    Gets or sets the bounding box in viewport coordinages (used for rendering the entity). This should be only set from the engine.

    Declaration
    public AGSBoundingBox ViewportBox { get; set; }
    Property Value
    Type Description
    AGSBoundingBox

    The render box.

    | Improve this Doc View Source

    WorldBox

    Gets or sets the bounding box in world coordinates (used for collision checks). This should be only set from the engine.

    Declaration
    public AGSBoundingBox WorldBox { get; set; }
    Property Value
    Type Description
    AGSBoundingBox

    The hit-test box.

    Methods

    | Improve this Doc View Source

    CopyFrom(AGSBoundingBoxes)

    Declaration
    public void CopyFrom(AGSBoundingBoxes boxes)
    Parameters
    Type Name Description
    AGSBoundingBoxes boxes
    | Improve this Doc View Source

    Equals(AGSBoundingBoxes)

    Declaration
    public bool Equals(AGSBoundingBoxes boxes)
    Parameters
    Type Name Description
    AGSBoundingBoxes boxes
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX