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.

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

Last updated