Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case when we have just one intersection while raycasting outside map #98

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

renan028
Copy link
Member

Description

It is wrong to return earlier when we have less than 2 intersections.
If an obstacle is inside, we should raycast until the object, thus just one intersection.

Before:
Screenshot from 2024-09-20 15-58-17

After:
Screenshot from 2024-09-20 15-57-16

@renan028 renan028 requested review from corot and tomin11 September 20, 2024 07:00
@renan028 renan028 merged commit 2fd1968 into devel Sep 23, 2024
1 check passed
@renan028 renan028 deleted the rs/fix_intersection branch September 23, 2024 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants