Syntriax.Engine/Engine.Physics2D/Abstract/IShapeCollider2D.cs

21 lines
549 B
C#
Raw Permalink Normal View History

2024-01-24 19:21:53 +03:00
using Syntriax.Engine.Physics2D.Primitives;
namespace Syntriax.Engine.Physics2D.Abstract;
2024-02-01 12:26:28 +03:00
/// <summary>
/// Represents a <see cref="ICollider2D"/> with a custom <see cref="Shape"/>.
/// </summary>
2024-01-24 19:21:53 +03:00
public interface IShapeCollider2D : ICollider2D
{
2024-02-01 12:26:28 +03:00
/// <summary>
/// Gets or sets the local <see cref="Shape"/> of the <see cref="ICollider2D"/>.
/// </summary>
2024-01-24 19:21:53 +03:00
Shape ShapeLocal { get; set; }
2024-02-01 12:26:28 +03:00
/// <summary>
/// Gets the world space representation of the <see cref="Shape"/>.
/// </summary>
2024-01-24 19:21:53 +03:00
Shape ShapeWorld { get; }
}