15 lines
489 B
C#
15 lines
489 B
C#
using Syntriax.Engine.Core;
|
|
using Syntriax.Engine.Physics2D.Abstract;
|
|
using Syntriax.Engine.Physics2D.Primitives;
|
|
|
|
namespace Syntriax.Engine.Physics2D;
|
|
|
|
public class Collider2DCircleBehaviour : Collider2DBehaviourBase, ICircleCollider2D
|
|
{
|
|
public Circle CircleWorld { get; protected set; } = new(Vector2D.Zero, 1f);
|
|
public Circle CircleLocal { get; set; } = new(Vector2D.Zero, 1f);
|
|
|
|
|
|
public override void Recalculate() => CircleWorld = Transform.TransformCircle(CircleLocal);
|
|
}
|