Skip to content

box3d-rust 0.4.0

Choose a tag to compare

@larsbrubaker larsbrubaker released this 29 Sep 19:02
· 43 commits to main since this release

This release syncs the port to upstream Box3D 9f998c8 and makes World
Send (#1). The C reference pin advances to 9f998c8 by way of 30c67b5
(upstream v0.2.0: 64-bit rapidhash geometry hashes and triangle manifold
collision fixes), and this port follows its API and behavior. The sync ran one
upstream commit at a time. Simulation results are not bit-compatible with
0.3.0. Ported:

  • 47d7f7c clockwise option, joint is awake (#130)
  • 954cf87 Fixes (#157)
  • f555ee4 Optimize Broad-Phase (#159)
  • 9e5a4cd Optimizations (#161)
  • 79fc559 Optimizations (#168)
  • 8fda30e (samples only, nothing to port)
  • adec25b SAT optimizations (#170)
  • 5643cd8 Remove compound mesh child material limit (#172)
  • 9f998c8 SAT samples (#173)

Breaking

  • Sensor visitors must now be convex (upstream b3IsConvex check); mesh,
    height-field, and compound shapes no longer generate sensor overlaps as
    visitors.
  • MAX_SHAPE_CAST_POINTS now equals MAX_HULL_VERTICES (128, previously 64).
  • Recording format minor version advances to 4. Older recordings still
    replay (the loader gates on major version only), but recordings that use
    the new shape-mutator ops are not readable by 0.3.0.
  • Geometry content hashes are now 64-bit rapidhash: the HullData,
    MeshData, and HeightFieldData hash fields are u64, struct byte
    layouts and version constants changed (BoxHull 648 -> 640 bytes), and
    serialized geometry from older versions no longer loads.
  • core::non_zero_hash and recording::hash64_blob are removed;
    hash_hull_data returns the content hash directly.
  • Shape creation now rejects geometry with mismatched version constants at
    runtime.
  • The world now owns an active recording (#1).
    world_start_recording(world, recording: Recording) and
    recording::start_recording take the Recording by value, and
    world_stop_recording(world) / recording::stop_recording return the
    finalized Option<Recording>. The world previously held a raw pointer to
    a caller-owned Recording, which was unsound if the caller moved or dropped
    it mid-session. World::recording is now
    Option<Box<RefCell<Recording>>>.
  • Shared hull geometry is now Arc<HullData> instead of Rc<HullData>
    (ShapeGeometry::Hull, the world hull database).
  • Recording format major version advances to 5 (upstream 47d7f7c): recorded
    mover planes carry the new PlaneResult triangle, child, and material
    indices. Recordings from major version 4 no longer replay.
  • PlaneResult gains triangle_index, child_index, and material_index,
    and MeshDef gains stride, vertex_bytes, and clock_wise_winding
    (upstream 47d7f7c). Struct literals without ..Default::default() must
    add the new fields.
  • get_length_and_normalize now treats vectors with squared length at or
    below 1000 * f32::MIN_POSITIVE as zero (was length below f32::EPSILON)
    and writes a zero length on failure, matching upstream.
  • Recording format major version advances to 6 (upstream 954cf87): the
    recorded body def carries safety_factor, and the new op 0x3B
    BodySetSafetyFactor is recorded and replayed. Recordings from major
    version 5 no longer replay. The world snapshot version advances to 3
    (Body::safety_factor); older snapshots are rejected.
  • BodyDef gains safety_factor (default 0.5) and Body gains
    safety_factor (upstream 954cf87). Struct literals without
    ..Default::default() must add the field.
  • The shared human ragdoll (human module) is rewritten to match upstream
    954cf87: the Spine02 and Head bones are gone (the neck bone carries the
    head capsule), BoneId values are renumbered, BONE_COUNT is 12,
    FILTER_JOINT_COUNT is 9, and create_human now creates three filter
    joints (thighs, neck and each upper arm). Bone frames, capsules, per-bone
    friction, joint limits, and foot capsules on the calves all changed.
  • The dynamic tree is rewritten to upstream f555ee4's layout: TreeNode is
    the 32-byte { aabb, flag_index, height } node (siblings paired at even
    indices, root at 0, index 1 always empty), and category bits and user data
    live in the new TreeProxy array. DYNAMIC_TREE_VERSION is now
    0x1D6F4C2A73B80E91, which also changes COMPOUND_VERSION; baked compounds
    and saved trees from earlier versions no longer load. The b3TreeNodeFlags
    constants (ALLOCATED_NODE, ENLARGED_NODE, the old LEAF_NODE) are
    replaced by the MOVED_NODE / LEAF_NODE / EMPTY_NODE flag-index bits.
  • DynamicTree::validate_no_enlarged is renamed validate_no_moved
    (b3DynamicTree_ValidateNoMoved), and BroadPhase::validate_no_enlarged is
    renamed validate_no_moved. DynamicTree::node_count and root_index are
    removed (use node_end and ROOT_NODE). user_data / aabb now resolve
    the proxy id through the proxy array, so proxy ids are no longer node
    indices.
  • TreeNodeView (from DynamicTree::node_views) now describes the sibling
    pair layout: left_child, proxy_id, user_data, is_leaf, is_empty,
    is_moved, and covers only nodes below node_end.
  • BroadPhase drops moved_proxies, move_array, buffer_move, and
    enlarge_proxy; moves are marks in the trees (mark_proxy_moved,
    mark_proxy_moved_serial). TaskContext::enlarged_sim_bit_set is replaced
    by TaskContext::pair_keys, the shape flag ENLARGED_AABB is removed, and
    World gains compound_shape_count.
  • The baked compound blob gains proxy_offset and stores only the live node
    range plus the proxy array (header 144 -> 184 bytes).
  • Recording format minor version advances to 6 and the world snapshot version
    to 5 (upstream f555ee4): snapshots store the tree node end, pair free
    list, proxy capacity and free list, DFS order flag, nodes and parents up to
    the node end, the proxies, and World::compound_shape_count; the move
    buffer is gone. Older snapshots are rejected.
  • Shape fat AABBs move out of Shape into the parallel World::fat_aabbs
    array (upstream 9e5a4cd); Shape::fat_aabb is removed and
    create_shape_proxy now takes the world and a shape id.
  • Contact::body_sim_index_a/b are replaced by the persistent
    encoded_body_sim_a/b locators (awake: local index, static:
    -(local index + 2), otherwise NULL_INDEX), maintained by the new
    refresh_body_contact_indices and the wake, sleep, transfer, destroy, and
    graph paths. New helpers encode_body_sim_index, is_static_sim_index,
    decode_awake_index, and sleep_body_sim_index.
  • body_flags::ENLARGE_BOUNDS is renamed ENLARGE_BULLET_BOUNDS and is only
    set for bullets; IS_FAST is no longer a transient body flag and only lives
    on BodySim.
  • The restitution solver stage is gone: RESTITUTION_ITERATIONS,
    Profile::apply_restitution, apply_restitution, and
    apply_restitution_convex are removed, and ContactConstraint::restitution
    is removed. ManifoldConstraintPoint::relative_velocity becomes
    restitution_velocity. The contact kernels split into push_contacts /
    push_contacts_convex (biased) and solve_contacts /
    solve_contacts_convex (relax with deferred restitution); none take a
    use_bias flag. prepare_color_contacts takes the contacts mutably.
  • Counters::byte_count is i64 and is now the first field (upstream
    b3Counters layout). The port has no allocator hooks, so upstream's
    b3AllocFcn / b3FreeFcn / b3GetByteCount signature changes have no Rust
    counterpart.
  • Recording format minor version advances to 7 and the world snapshot version
    to 7 (upstream 9e5a4cd): snapshots store World::fat_aabbs after the
    shapes and keep the contact body sim locators. Older snapshots are rejected.
  • The same-step restitution from 9e5a4cd is replaced by a post-solve
    restitution stage again (upstream 79fc559): ManifoldConstraintPoint
    carries relative_velocity and restitution_impulse (instead of
    restitution_velocity) and ContactConstraint regains restitution.
    apply_restitution (Mesh/overflow) returns with a new signature taking the
    restitution threshold and the propagation flag, and StepContext loses
    restitution_threshold (the solver reads the world's value, like C).
  • Graph-color convex contacts are solved by a four lane wide constraint
    (contact_solver::wide, ContactConstraintWide) that runs the scalar
    b3FloatW path, replacing the per-lane solve_contacts_convex /
    push_contacts_convex / warm_start_contacts_convex on ContactConstraint.
    prepare_color_contacts is replaced by prepare_mesh_contacts and
    wide::prepare_contacts_convex. The b3FloatW helpers move from
    manifold to the crate-level simd_scalar module.
  • world_rebuild_static_tree is now crate-internal (upstream removed
    b3World_RebuildStaticTree from the public API); the recording op still
    replays it.
  • Recording format minor version advances to 8 (upstream 79fc559) with the
    new ops 0x0E WorldSetRestitutionIterations and 0x0F
    WorldEnableRestitutionPropagation. The world snapshot version advances to
    10: the world config stores restitution_iterations and the restitution
    propagation flag (bit 0x10). Older snapshots are rejected.
  • Compound mesh children no longer have a material limit (upstream
    5643cd8). MAX_COMPOUND_MESH_MATERIALS is removed. CompoundCapsule,
    CompoundHull, and CompoundSphere carry a u16 material_index plus a
    u16 padding field (was i32). CompoundMesh::material_indices and
    ChildShape::material_indices are now &[u16] slices into the compound
    with a material_count field (was a fixed [i32; 4]), and
    compute_mesh_manifolds takes its material map as Option<&[u16]>.
  • The baked compound blob layout changes (upstream 5643cd8): the convex
    child and hull instance material indices are u16 + padding, mesh
    instances store a material_offset / material_count pair (60 -> 52
    bytes) into a packed u16 mesh material map stored after the mesh
    instance array, and COMPOUND_VERSION changes (seed
    0x7A2F41C9E6D0B358). Baked compounds from earlier versions no longer
    load.
  • The compatibility re-exports in contact_solver::wide are removed:
    contact_solver::wide::SIMD_WIDTH (use core::SIMD_WIDTH) and the wide
    vec3 helpers Vec3W, add_vw, sub_vw, cross_w, dot_w, mul_svw,
    mul_add_svw, and mul_sub_svw, which moved to the crate-internal
    simd_scalar module with upstream 9f998c8.

Changed

  • Mover collision against meshes and height fields is one sided (upstream
    47d7f7c): collide_mover_and_mesh / collide_mover_and_height_field
    skip triangles whose back faces the mover center, respecting mirrored mesh
    scale and clockwise height fields. Mesh and height-field shape casts cull
    back-facing triangles the same way.
  • Mover planes report the mesh or height-field triangle and its material.
    Compound movers report the child index and remap the child material through
    the compound material table; collide_mover clamps the material index to
    the shape's material count.
  • shape_distance fills normal, distance, iterations, and
    simplex_count on its overlap early outs, builds witness points before the
    normal check, and only writes the simplex cache on success.
  • time_of_impact reports an averaged hit point and normal when the shapes
    start overlapped.
  • Height-field casts swap the clockwise cell corners once up front, as
    upstream now does, instead of choosing vertices and normals per triangle.
    Clockwise ray-cast triangles are geometrically unchanged; the second
    triangle's normal is computed from different edges, so it may differ in the
    last bits.
  • World is now Send, so a world can be built on one thread and moved to
    another (#1).
  • Simplified face-vs-edge contact selection in the hull-capsule and
    triangle-capsule manifolds, matching upstream.
  • Continuous collision uses each body's safety_factor (upstream 954cf87)
    instead of the fixed 0.5 when deciding whether a body is fast.
  • Contact recycling is skipped for any contact touching a fast body (upstream
    954cf87); previously only fast mesh contacts skipped it.
  • The broad phase rebuilds the dynamic and kinematic trees every step, even
    when no proxy moved (upstream 954cf87). The empty-tree validation moved
    from solve into World::step, where C finishes the tree task.
  • reduce_manifold_points and the mesh cluster reduction follow upstream's
    B3_MAX_MANIFOLD_POINTS == 4 split: the default keeps the fast
    approximate reduction, and a larger MAX_MANIFOLD_POINTS would build a
    2D hull and simplify it to the target.
  • The human ragdoll rewrite changes the ragdoll and wave-pile determinism
    scenes; both precision modes match upstream's new golden hashes.
  • New broad-phase pair finder (upstream f555ee4, ported from Box2D): the
    dynamic tree collides against itself through its moved sibling pairs and
    against the static and kinematic trees through a seeded tree-against-tree
    traversal. Candidates are batched, culled against the pair set, and
    collected as pair keys that are sorted before contacts are created, so
    contact creation order follows shape order instead of tree structure. The
    ragdoll, wave-pile, and query-spawn goldens change and match upstream in
    both precision modes.
  • The tree rebuild puts the whole tree in DFS order and keeps unmoved
    subtrees; the solver refits the kinematic and dynamic trees with a sweep
    over the moved marks instead of enlarging proxies one by one. Bullets only
    enlarge a proxy when the tree box no longer contains the shape's fat box.
  • Same-step restitution (upstream 9e5a4cd): the bounce is armed in prepare
    from the pre-solve normal velocity and solved inside the relax pass, which
    sweeps the normal constraints once per manifold point while a bounce is
    armed and retires it once every bouncing point separates. The convex path
    makes the sweep count and the rolling resistance decision per group of four
    contacts, like upstream's wide constraints. ManifoldPoint::total_normal_impulse
    now only accumulates in the relax pass and includes the restitution impulse.
  • ManifoldPoint::normal_velocity is only computed when hit events are
    enabled on the contact (zero otherwise), and is written during prepare.
  • Continuous collision returns the gravity lost to the time of impact (the
    fraction of the step cut short), respecting linear motion locks.
  • Contacts cache base_separation only while touching.
  • The narrow phase resolves body sims through the contact locators and tests
    proxy overlap on World::fat_aabbs.
  • Debug draw contact forces no longer halve the total normal impulse.
  • Finalize clears the transient flags on the body and sim up front and only
    copies speed capping back to the body; HAD_TIME_OF_IMPACT stays on the
    sim.
  • The ragdoll and mesh-drop determinism goldens change and match upstream in
    both precision modes.
  • Post-solve Poisson kinetic restitution (upstream 79fc559): after the
    sub-steps, a restitution stage runs World::restitution_iterations times
    (overflow, then each color's wide and mesh contacts) when any contact has
    restitution. A bounce is armed from the sampled pre-solve normal velocity
    and limited by the compression impulse, so it never gains energy. With
    enable_restitution_propagation the stage also sweeps contacts without
    restitution. The relax pass is back to a single sweep.
  • The wide convex prepare gathers straight into the lanes (perpendicular
    tangents, symmetric inverse inertia and rolling mass, friction impulse
    projected onto the tangents), the wide warm start applies one accumulated
    impulse per body, and push/solve compute separation with normals rotated
    into body space, matching upstream's operation order.
  • Contact recycling zeroes the manifold point normal_velocity.
  • HAD_TIME_OF_IMPACT is set on the body sim when continuous collision
    moves the body (not per query hit), survives sync_body_flags, and debug
    draw reads it from the sim. The continuous query skips bullets by the body
    flag.
  • DynamicTree::rebuild(true) (full build) keeps the moved marks, so a
    static rebuild between a static mutation and the next step no longer loses
    the pending pairs.
  • Joints between two non-dynamic bodies go to the static set when a body is
    enabled; the prismatic and weld prepare asserts accept either body awake.
  • The ragdoll, wave-pile, and query-spawn determinism goldens change and
    match upstream in both precision modes.
  • Hull-vs-hull SAT culling (upstream adec25b): the separating axis query
    bounds each candidate axis by the hull inner radii and center distance,
    seeds a separation floor from the face best aligned with the center
    delta, skips faces that cannot beat it, and pre-culls edge pairs whose
    Gauss map arcs cannot reach the best separation (returning early when
    either hull has no candidates). When face clipping produces no points,
    collide_hulls reruns a full query for the best edge pair.
    find_hull_support_vertex scans the SoA vertices four lanes at a time
    and breaks ties toward the lowest vertex index. Verified bit-identical to
    the C reference on randomized hull pairs in both precision modes;
    determinism goldens are unchanged.
  • SAT revision (upstream 9f998c8): the adec25b full-query fallback in
    collide_hulls is removed; an empty face contact now switches to the edge
    contact only when the edge separation beats both face separations (or the
    clip separation by the linear slop). The edge candidate test
    (test_edge_candidate, was arc_can_reach) drops the center-distance
    term. The scalar edge phase gathers each B edge from the transformed SoA
    arrays and uses dot ordering, and its Gauss map tolerance is
    -linear_slop^2 (was -0.0001). Wide dot products use b3DotW order
    (x + y) + z (the SoA transform, face dots, and support search), and the
    support search starts its minimum at infinity. Verified bit-identical to the
    C reference on randomized hull pairs in both precision modes.
  • The wide vec3 type and its helpers (Vec3W, dot_w, cross_w, add_vw,
    sub_vw, mul_svw, mul_add_svw, mul_sub_svw, plus the new load_vw,
    store_vw, splat_vw, neg_vw) now live in simd_scalar alongside the
    other simd.h helpers, matching upstream; contact_solver::wide
    re-exports the ones it used. dot3_w (b3Dot3W) is removed.
  • The wave-pile determinism golden changes and matches upstream in both
    precision modes (float: sleep step 314, hash 0x8CB8F656; double: hash
    0x03B509B6).

Fixed

  • should_bodies_collide now rejects pairs where neither body is dynamic,
    like upstream's b3ShouldBodiesCollide (found by the new broad-phase
    stress test).
  • Disabling a kinematic body attached to a static body by a joint no longer
    trips the joint set assertion (upstream issue #164).
  • Overflow-color contacts now flag hit events, like upstream's
    b3StoreImpulses_Overflow (the port only flagged graph-color contacts).
  • Body extents (upstream 47d7f7c): capsule and sphere max_extent now
    bound the shape about the center of mass on every axis (the capsule used a
    signed max, the sphere subtracted the local center twice), and mesh extents
    measure from the local center instead of the body origin.
  • Compound creation caps each mesh child at MAX_COMPOUND_MESH_MATERIALS
    materials instead of indexing past the child material table.
  • Replayed-mesh material-index deserialization read the wrong element count
    (one index per triangle is correct); replayed mesh contacts previously
    panicked.
  • The same bug in the compound deserializer's duplicated nested-mesh reader:
    multi-material mesh children restored from bytes panicked on first contact.
    The duplicated readers are gone; nested blobs now go through the standalone
    converters.
  • Corrupt or kind-mismatched geometry in a recording file now fails the
    replay gracefully instead of panicking (a deliberate, documented divergence
    from C, which trusts the blob).
  • Triangle manifold collision fixes from upstream: plane-side test at exact
    zero, the capsule-edge parallel-skip bug, corrected capsule contact points,
    and an early return when no valid edge contact exists. Simulation results
    change; determinism hashes match upstream's new constants in both
    precision modes.
  • Restoring a snapshot over a live world (recording seek / re-seed) leaked the
    hull-database entries of the overwritten hull shapes: the release cloned the
    shape's Arc first, so the reference-count check never matched. The shape's
    hull reference is now moved out and released, as C's
    b3FreeLiveSimElements does.
  • Tearing down a world now finalizes an active recording, matching
    b3DestroyWorld calling b3StopRecordingInternal: use the new
    world::destroy_world (see Added). Merely dropping a World still
    discards an active recording unfinalized.
  • RecPlayer now destroys its replay world the way C does: dropping the
    player (b3DestroyPlayer) and a failed snapshot seed in RecPlayer::create
    go through destroy_world, so the host's destroy_debug_shape fires for
    every live replayed shape at teardown.
  • Snapshot restore no longer releases live shapes a second time inside the
    shape deserializer; the single release in deserialize_into_shell matches
    C's b3DesShapes / b3FreeLiveSimElements.
  • Creating a joint with collide_connected false now destroys the existing
    contacts between the two bodies first (upstream 954cf87, box3d issue
    #117). Previously those contacts survived until the joint's collide flag was
    toggled.
  • Changing a body's mass data (body_set_mass_data, body_apply_mass_from_shapes,
    and shape changes that update mass) now invalidates the cached relative
    transform on the body's contacts, so a recycled manifold is never reused
    after the center of mass moves (upstream 954cf87).
  • A proxy enlarged in one step and destroyed before the next no longer leaves
    enlarged tree nodes behind (upstream 954cf87, box3d issue #149).
  • overlap_compound now brings the world-space proxy into the compound frame
    before querying the compound tree and children, so compounds on moved or
    rotated bodies report correct overlaps (upstream 954cf87). The compound
    shape cast builds the child-local input with make_local_proxy and
    inv_rotate_vector and keeps can_encroach.
  • The compound sphere array now uses the C b3CompoundSphere stride of 20
    bytes (it used the 32 byte capsule stride), so compounds with more than one
    sphere child round-trip through convert_compound_to_bytes /
    convert_bytes_to_compound and the blob is byte-identical to C.
  • Casts, mover collision, contacts, and get_shape_user_material_id on a
    compound mesh child with more than four materials now resolve the
    triangle's own material instead of clamping to the fourth (upstream
    5643cd8).
  • convert_bytes_to_compound rejects (returns None) blobs whose mesh
    material runs fall outside the packed map section, whose mesh instances
    have fewer map entries than their mesh's materials, or whose map entries
    or convex child material indices fall outside the compound material
    table, so corrupt compounds fail the conversion instead of panicking in
    casts, mover collision, or contacts. C trusts the blob here.
  • The wasm demo crate now builds with double-precision enabled
    (cargo check --workspace --all-targets --features double-precision, where
    workspace feature unification turns large world mode on for the demo's
    box3d-rust dependency). The demo passes and receives world positions as
    Pos / WorldTransform (widening f32 inputs, narrowing to f32 only for
    render data) instead of assuming they are f32. CI now checks the whole
    workspace in both precision modes.
  • demo/build-wasm.ps1 and scripts/pre-commit-check.ps1 are now pure ASCII,
    so Windows PowerShell 5.1 (which reads BOM-less scripts as ANSI) parses
    them. A non-ASCII em dash had broken bun run build:wasm on 5.1.

Added

  • Upstream 79fc559 API: WorldDef::restitution_iterations (default 2) and
    enable_restitution_propagation, world_set_restitution_iterations /
    world_get_restitution_iterations (clamped to the new
    MAX_RESTITUTION_ITERATIONS = 63), world_enable_restitution_propagation /
    world_is_restitution_propagation_enabled, and Profile::restitution.

  • Upstream 47d7f7c API: body_time_of_impact_mover with BodyToiResult
    (b3Body_TimeOfImpactMover), body_get_min_extent, body_get_max_extent,
    body_get_max_extent_origin, and joint_is_awake.

  • Mesh creation reads interleaved vertex buffers (MeshDef::vertex_bytes
    read through MeshDef::stride) and accepts clockwise input
    (MeshDef::clock_wise_winding). The stride applies only to
    vertex_bytes; contiguous vertices require a stride of 0 or 12. Like C,
    a non-zero stride below 12 bytes, above 4096, or not a multiple of 4 is
    rejected.

  • Ported upstream tests: test_mesh.c (7), body ShapeExtents, body query
    MoverTOI* (11), height-field backside and clockwise casts (4), and mover
    material / one sided collision (10).

  • world::destroy_world(world: World) -> Option<Recording> (b3DestroyWorld):
    consumes the world, finalizes and returns any active recording, then
    releases every live shape's allocations (hull-database references and
    destroy_debug_shape host handles).

  • RecPlayer::set_debug_shape_callbacks (b3RecPlayer_SetDebugShapeCallbacks):
    destroys the current replay world, rebuilds frame 0 under the new
    debug-shape callbacks, and rewinds the player.

  • New rapidhash module and core::hash64_non_zero, with the test_hash.c
    suite ported.

  • ShapeSetMeshMaterial, ShapeSetHull, and ShapeSetMesh are now recorded
    and replayed.

  • New tests: overlap hull proxy, transformed box hull, capsule face-deep
    manifolds, and geometry mutator replay.

  • New "Class Ring" demo scene in the Bodies category.

  • Upstream 954cf87 API: body_set_safety_factor / body_get_safety_factor
    (b3Body_SetSafetyFactor / GetSafetyFactor), core::get_max_manifold_points
    (b3GetMaxManifoldPoints), and the 2D hull used for manifold simplification:
    hull::Point2D, hull::hull_2d, and hull::simplify_hull_2d
    (b3Point2D, b3Hull2D, b3SimplifyHull2D).

  • Ported upstream 954cf87 tests: 2D hull and simplification (6), compound
    shape cast / material remap / transformed overlap / rotated-child mover (7),
    body query OverlapCompoundRotatedBody, joint
    TestCreateJointClearsContacts, manifold MaxPointCountTest with the
    ENSURE_FACE_POINTS range check, world TestEnlargedProxyDestroyed, the
    safety-factor additions to the recording AllOps session (as a focused
    round-trip test), and the determinism EnsureRepeatable /
    ENSURE_GOLDEN structure.

  • Upstream f555ee4 tree API: DynamicTree::save / load (b3DynamicTree_Save
    / Load, byte-compatible with the C file format) plus save_to_bytes /
    load_from_bytes, refit, mark_proxy_moved, mark_proxy_moved_serial,
    clear_moved, gather_moved_proxies, create_proxy_internal,
    move_proxy_internal, has_tree_moved, needs_rebuild, node_end,
    dfs_ordered, proxy_capacity, and table::HashSet::contains_hashed_key.

  • Ported upstream f555ee4 tests: test_dynamic_tree.c (8), world
    TestCompoundShapeCount and the reworked TestEnlargedProxyDestroyed
    (CountMovedNodes), and the compound tree asserts.

  • Ported upstream 5643cd8 tests: compound CompoundMeshManyMaterials and
    CompoundMeshContactMaterial, and the five-material compound mesh child
    addition to the recording AllOps session (as a focused round-trip test).

  • create_complex_hull(radius) (b3CreateComplexHull, upstream 9f998c8): the
    hull of 32 pseudo random points on a sphere from PEEL's convex pile.