---
title: "Box2D 3.1"
description: "Box2D 3.1 fixes most bugs and build problems from 3.0 and adds an experimental geometric character mover built from collision queries and a specialized solver that runs outside the physics world."
url: "https://swe.quest/articles/box2d-3-1-d8698258cbab254f"
canonical: "https://box2d.org/posts/2025/04/box2d-3.1/"
source: "Box2D"
published: "2025-04-19"
difficulty: "medium"
kind: "Release"
reading_minutes: 2
tags: ["gaming","performance","c-cpp"]
---

# Box2D 3.1

A post on [Box2D](https://swe.quest/sources/box2d.md), published 2025-04-19, 2 min read, Release. Original: [https://box2d.org/posts/2025/04/box2d-3.1/](https://box2d.org/posts/2025/04/box2d-3.1/)

## Summary

Box2D 3.1 fixes most bugs and build problems from 3.0 and adds an experimental geometric character mover built from collision queries and a specialized solver that runs outside the physics world. A rewritten sensor system no longer piggybacks on contacts: it ignores body type and sleep state, runs at the end of the step for undelayed, deterministic, multithreaded begin/end events, and exposes current overlaps. Rolling resistance and tangent speed (conveyor belts) are new shape surface properties using the SIMD contact solver. SSE2 is now the default on x64 instead of AVX2, Neon is optimized for Apple Silicon, continuous collision is about twice as fast, and GJK is 20% faster.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Games](https://swe.quest/tags/gaming.md) (Domains)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)

## Prerequisites

- rigid body physics basics
- game physics engines

## Keywords

Box2D, GJK, SIMD, SSE2, AVX2, Neon

## Related posts

- [Box2D 3.2](https://swe.quest/articles/box2d-3-2-6bf0b6359f7de39c.md): Box2D · 2026-10-18 · Easy · 2 min read · Games, Performance engineering, C & C++
  Box2D 3.2 runs roughly three times faster than 3.1, with the speedup broken down by source: contact recycling (~40%), solver algorithm refinement (~20%), AVX2 runtime dispatch (~15%), solver optimization (~10%) and broad-phase optimization (~10%), which compound multiplicatively.
- [SIMD for Collision](https://swe.quest/articles/simd-for-collision-0a426a9583188633.md): Box2D · 2026-07-18 · Hard · 5 min read · Performance engineering, Games, Algorithms, C & C++
  Box3D uses wide SIMD to speed up the edge-edge phase of the Separating Axis Test, testing one edge of hull A against four edges of hull B at once using structure-of-arrays data.
- [Inscribed Spheres](https://swe.quest/articles/inscribed-spheres-119dd641a396418e.md): Box2D · 2026-09-29 · Hard · 14 min read · Games, Algorithms, Performance engineering, C & C++
  Inscribed spheres give a cheap upper bound on the separation achievable along any axis in the separating axis test (SAT): n·d − (rA + rB), where d joins the sphere centers.
- [Contact Recycling](https://swe.quest/articles/contact-recycling-cff69228db371637.md): Box2D · 2026-10-12 · Hard · 9 min read · Games, Performance engineering, Algorithms, Scientific computing
  Contact recycling reuses one-shot contact manifolds across full time steps when two bodies have barely moved relative to each other, making narrow-phase contact generation nearly free for resting stacks or objects riding together.
- [Replay](https://swe.quest/articles/replay-cd1e00a39568cbbd.md): Box2D · 2026-06-07 · Medium · 6 min read · Games, Debugging, C & C++, Data structures
  Box2D's new Replay system records a full binary snapshot of world state followed by opcodes and arguments for every API call, including steps, forces, impulses, body creation and queries with their callback results.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
