Repository navigation
Travel speculation (#173) and Aether 0.809.0 - #175
Merged
Merged
Conversation
WorldDef.enable_travel_speculation, off by default so the reference's results and the golden trace stay: every contact, a dynamic pair's too, keeps speculative points out to the pair's travel over the step (what enable_kinematic_speculation does for a kinematic body's, #167), and a moving body's fat bounds cover its next step, a fast body's after its continuous sweep included, so the pair exists in time. A 1.2 t dynamic car at 7 m/s, 11.7 cm a step, found a ball or a 6 cm limb it struck 6 cm or more inside it on the first frame; now under 1 cm, at 20 m/s too. Recorded (OP_ENABLE_TRAVEL_SPECULATION) and kept in snapshots (version 5). In ae3d's plaza it cut the seconds a struck figure's limbs spent inside the car from 6.9 to 0.9 over eight seeds. Aether 0.809.0, the latest release: the whole gate passes on it, the golden trace bit for bit.
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.
WorldDef.enable_travel_speculation(andphysics_world.enable_travel_speculation), off by default so the reference's results and the golden trace stay the same. When on, every contact keeps speculative points out to the pair's travel over the step, dynamic pairs included. That is whatenable_kinematic_speculation(A kinematic body travelling past the speculative distance in a step finds slow dynamic bodies already inside it: a strike's first frame #167) does for a kinematic body's contacts. A moving body's fat bounds also cover its next step, a fast body's after its continuous sweep included, so the pair exists in time.OP_ENABLE_TRAVEL_SPECULATION(test_recording's every-op check now covers 162) and kept in snapshots (SNAPSHOT_VERSION5).Closes #173.