Skip to content

Commit 2f36d44

Browse files
committed
wip 3
1 parent ae98b41 commit 2f36d44

6 files changed

Lines changed: 256 additions & 222 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// SPDX-FileCopyrightText: 2023 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
namespace Box2D.NET
6+
{
7+
// Prepare/store run as a flat parallel-for over the whole wide-constraint
8+
// range. Each span maps a slice of that range back to the owning color's
9+
// contacts so workers can decode flat wide-slot indices without touching
10+
// graph state. The spans array has one entry per active color plus a sentinel
11+
// whose start == wideContactCount.
12+
public struct B2ContactPrepareSpan
13+
{
14+
public int start;
15+
public int count;
16+
public B2ContactSim[] contacts;
17+
}
18+
}

0 commit comments

Comments
 (0)