/
EugenyCh7
/
Puppet2D.Net
Обзор
Документация
Войти
/
EugenyCh7
/
Puppet2D.Net
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Puppet2D.Engine/Geometry/ChainSegment.cs
25 строк
673 B
EugenyCh7
++ Puppet2D.Engine.Geometry
24 авг 2025, 18:53
24 авг 2025, 18:53
1686cec
Код
Авторство
О чём код?
using Puppet2D.System; namespace Puppet2D.Engine.Geometry { /// <summary> /// A line segment with one-sided collision. /// Only collides on the right side.Several of these are generated for a chain shape.ghost1 -> point1 -> point2 -> ghost2 /// </summary> public struct ChainSegment { public Vector2 Ghost1; public Vector2 Ghost2; public Segment Segment; internal B2.ChainSegment CastToChainSegment() { return new B2.ChainSegment { ghost1 = Ghost1, ghost2 = Ghost2, segment = Segment.CastToSegment() }; } } }