Returns earliest collision with some entity on the grid.
Pushes the circle into the cells of the grid which cover it.
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);