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

Add a maximum TOI limit to every ray-cast queries. #321

Merged
merged 5 commits into from
Mar 2, 2020

Conversation

sebcrozet
Copy link
Member

@sebcrozet sebcrozet commented Mar 2, 2020

This is a breaking changes that adds a max_toi parameter to every ray-cast queries. This will cause ray-cast queries to return None if the time of impact of the ray with the queried shape is greater than max_toi.

In other words, if the first hit of the ray with the shape is further than ray.orig + ray.dir * max_toi, then None is returned.

This PR also fixes the CI build for WASM.

@sebcrozet sebcrozet added breaking change Fixing this issue is likely to require breaking changes enhancement P-medium Medium priority labels Mar 2, 2020
@sebcrozet sebcrozet merged commit a7b9f99 into master Mar 2, 2020
@sebcrozet sebcrozet deleted the ray_cast_max_toi branch March 2, 2020 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Fixing this issue is likely to require breaking changes enhancement P-medium Medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant