mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
17 lines
399 B
C#
17 lines
399 B
C#
using Microsoft.Xna.Framework;
|
|
using MonoGame.Extended.Shapes;
|
|
|
|
namespace MonoGame.Extended.Collisions
|
|
{
|
|
public interface ICollidable
|
|
{
|
|
RectangleF GetAxisAlignedBoundingBox();
|
|
void OnCollision(CollisionInfo collisionInfo);
|
|
}
|
|
|
|
public interface IDynamicCollidable : ICollidable
|
|
{
|
|
Vector2 Position { get; set; }
|
|
Vector2 Velocity { get; set; }
|
|
}
|
|
} |