Class AGSBoundingBoxes
The bounding boxes used for the entity.
Inheritance
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public class AGSBoundingBoxes
Properties
| Improve this Doc View SourcePreCropViewportBox
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. |
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. |
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. |
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 SourceCopyFrom(AGSBoundingBoxes)
Declaration
public void CopyFrom(AGSBoundingBoxes boxes)
Parameters
Type | Name | Description |
---|---|---|
AGSBoundingBoxes | boxes |
Equals(AGSBoundingBoxes)
Declaration
public bool Equals(AGSBoundingBoxes boxes)
Parameters
Type | Name | Description |
---|---|---|
AGSBoundingBoxes | boxes |
Returns
Type | Description |
---|---|
System.Boolean |