using System; using Microsoft.Xna.Framework; namespace MonoGame.Extended.Collisions { /// /// This class holds data on a collision. It is passed as a parameter to /// OnCollision methods. /// public class CollisionEventArgs : EventArgs { /// /// Gets the object being collided with. /// public required ICollisionActor Other { get; init; } /// /// Gets a vector representing the overlap between the two objects. /// /// /// This vector starts at the edge of and ends at /// the Actor's location. /// public required Vector2 PenetrationVector { get; init; } } }