# AxisAlignedRectangle

### Introduction

AxisAlignedRectangles are rectangular shapes which cannot be rotated. AxisAlignedRectangles can be used as collision objects. For information on using AxisAlignedRectangles in code, see the [AxisAlignedRectangle code page](https://github.com/flatredball/FlatRedBallDocs/blob/main/frb/docs/index.php).

### Adding an AxisAlignedRectangle to an entity

To add an AxisAlignedRectangle to an entity:

1. Expand your entity
2. Right-click on the Objects item
3. Select "Add Object"
4. Enter the name "Collision"
5. Set the SourceType to "FlatRedBallType
6. Set the SourceClassType to "AxisAlignedRectangle"![AxisAlignedRectangleInGlue.png](https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2Fgit-blob-1c775b9d344f2925ba7bd826ac7ace7e99809c04%2Fmigrated_media-AxisAlignedRectangleInGlue.png?alt=media)
