diff --git a/Engine.Physics2D/Collider2DShapeBehaviour.cs b/Engine.Physics2D/Collider2DShapeBehaviour.cs index 38b455e..178d490 100644 --- a/Engine.Physics2D/Collider2DShapeBehaviour.cs +++ b/Engine.Physics2D/Collider2DShapeBehaviour.cs @@ -13,5 +13,9 @@ public class Collider2DShapeBehaviour : Collider2DBehaviourBase, IShapeCollider2 public override void CalculateCollider() => Transform.TransformShape(ShapeLocal, ref _shapeWorld); public Collider2DShapeBehaviour() { } - public Collider2DShapeBehaviour(Shape2D shape) => ShapeLocal = shape; + public Collider2DShapeBehaviour(Shape2D shape) + { + ShapeLocal = shape; + ShapeWorld.CreateCopy(); + } }