Syntriax.Engine/Engine.Physics2D/Abstract/IPhysicsMaterial2D.cs

18 lines
438 B
C#
Raw Permalink Normal View History

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