Polygons can be added to screens and entities to create complex collision. Polygons will automatically be used in an entity’s collisions if the entity is marked as ICollidable in Glue.
For information on working with the Polygon object in code, see the Polygon class reference.
Adding a Polygon to an Entity
Polygons can be added to entities:
- Select the entity which will have the Polygon
- Select the Quick Actions tab
- Click the Add Object button
- Select the Polygon type
- Click OK
If the containing Entity is an ICollidable, the Polygon will automatically be used when performing collision.
Polygons can be edited through the Points tab, which appears when selecting a Polygon.