githubEdit

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 pagearrow-up-right.

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

Last updated

Was this helpful?