FlatRedBall.Math.Geometry.Circle

Introduction

The Circle represents a PositionedObject which can be used to draw circles or conduct circular collision which is very efficient. Circles are created and removed through the ShapeManager.

Creating a Circle in Glue

Glue supports the creation of Circles in Screens and Entities. To create a Circle in Glue:

  1. Expand a Screen or Entity
  2. Right-click on the Objects folder
  3. Select Add Object
  4. Select the Circle type
  5. Click OK

Simple Circle Example

The following example creates two circles and controls one of them with the Keyboard.

Add the following using statement
At Class Scope:
In Initialize:
In Update:
TwoCirclesOverlapping.png

Circle Members

Did this article leave any questions unanswered? Post any question in our forums for a rapid response.