Improve H2H LapTimer and collision recovery behavior#22
Merged
Tinker-Twins merged 4 commits intoJul 17, 2026
Conversation
Handle vehicle-to-vehicle collisions by respawning the collision pair side by side at the selected checkpoint. Add a grace period to avoid immediate repeat vehicle and racetrack collision handling.
Owner
|
Thanks a lot for the contribution, @jooncheol! We have reviewed your commits, and PR #22 looks good to be merged upstream. Cheers! |
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.
first 3 commits are bug fix in H2H mode
last commit is applying the respawning behavior that put two cars side by side at the last check point near by the collision point instead of respawning two cars on different last check point.
(In case of using AutoDRIVE RCT, the penalty is given to faulty car by filtering the steer/trottle command for N seconds so that the victim car can take the compensation. Also the penalty given car start from collision point as near as possible. This is the reason why respawning two cars side by side at the same check point does make sense.)
This PR doesn't have impact on single time trial mode racing.