Repository navigation
Body contact: the sorted sweep, the range filter and the list resolve: body-contact-2 - #84
Merged
Merged
Conversation
… (body-contact-2), and a 32-bit box test in the field walk Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lidation index The record's first line must read '# Validation record — <date> (<scope>)' and saturn/VALIDATION.md must list it; host CI's index check failed on both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Body contact: the sorted sweep, the range filter and the list resolve (
body-contact-2)The field walk of
body-contact-1split into a pair list, an exact range filter and the pair calls, so a caller that computes a body's position or velocity lazily pays for them only where a pair needs them.sh2z_bc_field_resolvealso tests the position box in 32 bits before it calls the pair function. Nobody-contact-1result changes.sh2z_bc_sweep(the pairs within a window, in the field walk's order, with the bodies they touch marked),sh2z_bc_range(pairs of two ACTIVE bodies within the reach on every axis),sh2z_bc_field_resolve_list(the pair function over a list, with the field's history). Guide section and validation record included.body_contact_exactunder GCC and Clang strict and ASan/UBSan: the existing checks, 20 races x 300 ticks x 30 bodies of the list path against the field walk (outputs,last,toucher,since, contacts equal every tick), the int32-range case, and two controls (a 4-unit sweep window, a half-reach range filter) that are caught. The SH-2 object (-m2 -mb -O2 -Wall -Wextra -Werror) needs no libc function.sh2z_bc_prefix,*_experimental.hcontract-tag section, doc comments as the file writes them); not checked against a current sh4zam checkout here, for the integration owner's gate.Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com