diff --git a/source/MonoGame.Extended/Collisions/CollisionEventArgs.cs b/source/MonoGame.Extended/Collisions/CollisionEventArgs.cs index ca401dff..a21418c8 100644 --- a/source/MonoGame.Extended/Collisions/CollisionEventArgs.cs +++ b/source/MonoGame.Extended/Collisions/CollisionEventArgs.cs @@ -12,7 +12,7 @@ namespace MonoGame.Extended.Collisions /// /// Gets the object being collided with. /// - public ICollisionActor Other { get; internal set; } + public required ICollisionActor Other { get; init; } /// /// Gets a vector representing the overlap between the two objects. @@ -21,6 +21,6 @@ namespace MonoGame.Extended.Collisions /// This vector starts at the edge of and ends at /// the Actor's location. /// - public Vector2 PenetrationVector { get; internal set; } + public required Vector2 PenetrationVector { get; init; } } -} \ No newline at end of file +}