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 raycast options to hit when starting inside / hit back faces #54857

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

pouleyKetchoupp
Copy link
Contributor

@pouleyKetchoupp pouleyKetchoupp commented Nov 11, 2021

Makes the results consistent for all shape types with options to set the desired behavior:

hit_from_inside: For 2D and 3D. Detects a hit when starting inside shapes. In this case the collision normal is a zero vector. Does not affect shapes with no volume like concave polygon or heightmap. Disabled by default.

hit_back_faces: For 3D only. Hits back faces with concave polygon shapes with back face enabled or heightmap shapes. Enabled by default.


Fixes #35845
Fixes #36259
Fixes #38343
Fixes #38873
Fixes #39859
Fixes #44003
Supersedes #41347

Makes the results consistent for all shape types with options to set
the desired behavior.
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I'll let other physics folks review/validate the architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment