Download Now

    Reference TCircle

    Declared in Codebot.Physics.pas on line 146

    TCircle is a circle shape
      TCircle = record
      public
        Ref: cpCircleShape;
        class operator Implicit(const Value: TCircle): cpCircleShape; inline;
        class operator Implicit(const Value: cpCircleShape): TCircle; inline;
        class operator Implicit(const Value: TCircle): cpShape; inline;
        class operator Implicit(const Value: cpShape): TCircle; inline;
        { Remove the circle from its space and free it }
        procedure Free;
        { True if this refers to nothing }
        function IsNil: Boolean; inline;
        { Change the radius and offset of the circle }
        procedure Reshape(Radius: Float; const Offset: TVec2);
        { The radius of the circle }
        property Radius: Float read GetRadius write SetRadius;
        { The center of the circle in body coordinates }
        property Offset: TVec2 read GetOffset write SetOffset;
      end;

    See also

    Float in Codebot.System.pas
    TVec2 in Codebot.Geometry.pas