# 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](/files/A8gKcIAKa1c3F4ct30TP)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flatredball.com/flatredball/glue-reference/objects/object-types/glue-reference-axisalignedrectangle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
