Box2D is a 2D physics engine for games
This report summarizes scanner evidence for erincatto/box2d, a C project with 10,462 GitHub stars. SynthScan examined 142,687 lines of code across 193 source files, recording 307 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 2.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 306 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 307 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 307 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 161 | COMMENT | |
| LOW | benchmark/main.c | 1 | // SPDX-FileCopyrightText: 2024 Erin Catto | COMMENT |
| LOW | test/test_determinism.c | 1 | // SPDX-FileCopyrightText: 2023 Erin Catto | COMMENT |
| LOW | test/test_snapshot.c | 1 | // SPDX-FileCopyrightText: 2026 Erin Catto | COMMENT |
| LOW | test/test_world.c | 1 | // SPDX-FileCopyrightText: 2023 Erin Catto | COMMENT |
| LOW | test/test_restitution.c | 1 | // SPDX-FileCopyrightText: 2025 Erin Catto | COMMENT |
| LOW | test/test_restitution.c | 861 | continuous ? 1 : 0, result.firstApex, dropHeight, bounceHeight, result.speedRatio, result.firstEnergyRatio, | COMMENT |
| LOW | test/test_recording.c | 1 | // SPDX-FileCopyrightText: 2026 Erin Catto | COMMENT |
| LOW | test/main.c | 1 | // SPDX-FileCopyrightText: 2023 Erin Catto | COMMENT |
| LOW | test/test_large_world.c | 1 | // SPDX-FileCopyrightText: 2023 Erin Catto | COMMENT |
| LOW | include/box2d/math_functions.h | 361 | return qn; | COMMENT |
| LOW | include/box2d/math_functions.h | 741 | } | COMMENT |
| LOW | include/box2d/config.h | 1 | // SPDX-FileCopyrightText: 2026 Erin Catto | COMMENT |
| LOW | include/box2d/config.h | 21 | // #define BOX2D_DISABLE_SIMD | COMMENT |
| LOW | include/box2d/types.h | 1 | // SPDX-FileCopyrightText: 2023 Erin Catto | COMMENT |
| LOW | include/box2d/types.h | 21 | COMMENT | |
| LOW | include/box2d/types.h | 241 | /// Linear damping is used to reduce the linear velocity. The damping parameter can be larger | COMMENT |
| LOW | include/box2d/types.h | 281 | COMMENT | |
| LOW | include/box2d/types.h | 321 | typedef struct b2Filter | COMMENT |
| LOW | include/box2d/types.h | 341 | /// maskBits = Static | Player; | COMMENT |
| LOW | include/box2d/types.h | 441 | /// the interior, which may have other considerations, such as being hollow. For example a wood | COMMENT |
| LOW | include/box2d/types.h | 481 | /// Warning: if this is false, you MUST call b2Body_UpdateMassFromShapes or b2Body_SetMassData | COMMENT |
| LOW | include/box2d/types.h | 501 | /// - an open chain shape needs a leading and trailing ghost point. | COMMENT |
| LOW | include/box2d/types.h | 1061 | COMMENT | |
| LOW | include/box2d/types.h | 1121 | { | COMMENT |
| LOW | include/box2d/types.h | 1181 | COMMENT | |
| LOW | include/box2d/types.h | 1261 | /// The second shape id. | COMMENT |
| LOW | include/box2d/types.h | 1281 | /// allows you to inspect a manifold before it goes to the solver. If you are careful, you can | COMMENT |
| LOW | include/box2d/types.h | 1301 | /// - this is not called for sensors Return false if you want to disable the time of impact event. | COMMENT |
| LOW | include/box2d/types.h | 1321 | /// @param point the point of initial intersection | COMMENT |
| LOW | include/box2d/collision.h | 221 | /// Make a box (rectangle) polygon, bypassing the need for a convex hull. | COMMENT |
| LOW | include/box2d/collision.h | 321 | /// - all points very close together | COMMENT |
| LOW | include/box2d/collision.h | 781 | /// filtering. This has performance roughly equal to k * log(n), where k is the number of collisions | COMMENT |
| LOW | include/box2d/collision.h | 801 | /// The sweep translation. | COMMENT |
| LOW | include/box2d/box2d.h | 1 | // SPDX-FileCopyrightText: 2026 Erin Catto | COMMENT |
| LOW | include/box2d/box2d.h | 41 | COMMENT | |
| LOW | include/box2d/box2d.h | 81 | COMMENT | |
| LOW | include/box2d/box2d.h | 121 | /// Collide a capsule mover with the world, gathering collision planes that can be fed to | COMMENT |
| LOW | include/box2d/box2d.h | 181 | b2PreContinuousCallbackFcn* preContinuousFcn, | COMMENT |
| LOW | include/box2d/box2d.h | 301 | /// seed, then logs every mutating call. Call at a step boundary, before or after creating bodies. | COMMENT |
| LOW | include/box2d/box2d.h | 341 | /// image == NULL to get the required size, then again with a buffer of at least that size. Must be | COMMENT |
| LOW | include/box2d/box2d.h | 461 | /// Get the linear velocity of a local point attached to a body. Usually in meters per second. | COMMENT |
| LOW | include/box2d/box2d.h | 481 | B2_API void b2Body_ApplyForceToCenter( b2BodyId bodyId, b2Vec2 force, bool wake ); | COMMENT |
| LOW | include/box2d/box2d.h | 501 | /// @param point the world position of the point of application. | COMMENT |
| LOW | include/box2d/box2d.h | 621 | COMMENT | |
| LOW | include/box2d/box2d.h | 701 | /// cloned. Contacts are not created until the next time step. | COMMENT |
| LOW | include/box2d/box2d.h | 881 | /// @note Box2D uses speculative collision so some contact points may be separated. | COMMENT |
| LOW | include/box2d/box2d.h | 901 | /// Get the current world AABB | COMMENT |
| LOW | include/box2d/box2d.h | 1601 | * @{ | COMMENT |
| LOW | include/box2d/id.h | 81 | int16_t padding; | COMMENT |
| LOW | include/box2d/constants.h | 21 | #else | COMMENT |
| LOW | include/box2d/constants.h | 41 | /// @warning modifying this can have a significant impact on stability | COMMENT |
| LOW | include/box2d/constants.h | 61 | #define B2_SPECULATIVE_DISTANCE ( 4.0f * B2_LINEAR_SLOP ) | COMMENT |
| LOW | include/box2d/base.h | 1 | // SPDX-FileCopyrightText: 2023 Erin Catto | COMMENT |
| LOW | include/box2d/base.h | 21 | // clang-format off | COMMENT |
| LOW | include/box2d/base.h | 41 | COMMENT | |
| LOW | include/box2d/base.h | 61 | COMMENT | |
| LOW | include/box2d/base.h | 161 | // Unknown compiler | COMMENT |
| LOW | shared/determinism.h | 1 | // SPDX-FileCopyrightText: 2025 Erin Catto | COMMENT |
| LOW | shared/utils.c | 1 | // SPDX-FileCopyrightText: 2023 Erin Catto | COMMENT |
| 224 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/snapshot.c | 641 | // Step 1: world scalars | COMMENT |
| LOW⚡ | src/snapshot.c | 644 | // Step 2: 7 id pools (overwrite entirely, including solverSetIdPool from the 3 pre-created | COMMENT |
| LOW⚡ | src/snapshot.c | 654 | // Step 3: solver sets | COMMENT |
| LOW⚡ | src/snapshot.c | 687 | // Step 4: sparse arrays. userData was written as NULL by the serializer, so a plain copy | COMMENT |
| LOW⚡ | src/snapshot.c | 695 | // Step 5: chain shapes | COMMENT |
| LOW | src/snapshot.c | 746 | // Step 6: sensors | COMMENT |
| LOW | src/snapshot.c | 780 | // Step 7: islands | COMMENT |
| LOW | src/snapshot.c | 815 | // Step 8: broad phase | COMMENT |
| LOW | src/snapshot.c | 829 | // Step 9: constraint graph | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/snapshot.c | 641 | // Step 1: world scalars | COMMENT |
| LOW⚡ | src/snapshot.c | 644 | // Step 2: 7 id pools (overwrite entirely, including solverSetIdPool from the 3 pre-created | COMMENT |
| LOW⚡ | src/snapshot.c | 654 | // Step 3: solver sets | COMMENT |
| LOW⚡ | src/snapshot.c | 687 | // Step 4: sparse arrays. userData was written as NULL by the serializer, so a plain copy | COMMENT |
| LOW⚡ | src/snapshot.c | 695 | // Step 5: chain shapes | COMMENT |
| LOW | src/snapshot.c | 746 | // Step 6: sensors | COMMENT |
| LOW | src/snapshot.c | 780 | // Step 7: islands | COMMENT |
| LOW | src/snapshot.c | 815 | // Step 8: broad phase | COMMENT |
| LOW | src/snapshot.c | 829 | // Step 9: constraint graph | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/build.yml | 136 | # Build-only: running the wasm test needs a node + pthread/SharedArrayBuffer harness. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | api/api_dump.py | 95 | CODE | |
| LOW | api/api_dump.py | 286 | CODE | |
| LOW | api/api_dump.py | 399 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | api/api_dump.py | 24 | - enums: name, values [{name, value (integer or null), expr, brief}], header, brief | STRING |