mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
* Added CircleF and RectangleF intersection method * Simplified shape implementation * Docs * Collision system uses shapes * QuadTree collision allows circles * ICollisionActor remove setter +semver: patch * Added position to IShapeF +semver: patch * Added CollisionComponent contains * Fix penetration vector between circles * Circle Rectangle penetration vector * Added test for Rectangle Rectangle Collision * Add docs, fix test
12 lines
268 B
C#
12 lines
268 B
C#
namespace MonoGame.Extended.Collisions
|
|
{
|
|
/// <summary>
|
|
/// An actor that can be collided with.
|
|
/// </summary>
|
|
public interface ICollisionActor
|
|
{
|
|
IShapeF Bounds { get; }
|
|
|
|
void OnCollision(CollisionEventArgs collisionInfo);
|
|
}
|
|
} |