NAME

Collision::2D::Entity::Circle - A circle entity.

DESCRIPTION

This is an entity with a radius. Attributes x and y point to the center of the circle.

ATTRIBUTES

radius

Each point on the circle is this distance from the center, at ($circ->x, $circ->y)

METHODS

In any of these collide_* methods, relative coordinates must be set. See Entity for more info.

collide_point

$self->normalize ($pt);
$self->collide_point($pt, interval=>1);

collide_circle

$self->normalize ($circ);
$self->collide_circle($circ, interval=>1);

collide_rect

$self->normalize ($rect);
$self->collide_rect($rect, interval=>1);