2024-01-23 18:39:25 +03:00
|
|
|
namespace Syntriax.Engine.Physics2D.Abstract;
|
|
|
|
|
2024-02-01 12:26:28 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Represents a 2D physics object's responsive attributes.
|
|
|
|
/// </summary>
|
2024-01-23 18:39:25 +03:00
|
|
|
public interface IPhysicsMaterial2D
|
|
|
|
{
|
2024-02-01 12:26:28 +03:00
|
|
|
/// <summary>
|
|
|
|
/// The friction coefficient of the physics object.
|
|
|
|
/// </summary>
|
2024-01-23 18:39:25 +03:00
|
|
|
float Friction { get; }
|
2024-02-01 12:26:28 +03:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The restitution (bounciness) coefficient of the physics object.
|
|
|
|
/// </summary>
|
2024-01-23 18:39:25 +03:00
|
|
|
float Restitution { get; }
|
|
|
|
}
|