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 hit_back_faces property to RayCast3D #79330

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

mihe
Copy link
Contributor

@mihe mihe commented Jul 11, 2023

This adds the hit_back_faces parameter, found in PhysicsRayQueryParameters3D, as a property to the RayCast3D node.

For reasons that are not obvious to me this query parameter was left out of the RayCast3D node in #54857, which is causing some friction when using Godot Jolt, as Jolt's notion of back-faces include all shapes, including convex shapes, leading to users having to do their ray-casting manually, using intersect_ray, when they run up against this discrepancy and want to disable this parameter.

(The documentation was copied from the equivalent parameter in PhysicsRayQueryParameters3D.)

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.

@mihe
Copy link
Contributor Author

mihe commented Jul 11, 2023

That ASan CI failure looks to be related to #78749 and not caused by this PR.

@YuriSizov YuriSizov merged commit 892bc5f into godotengine:master Jul 14, 2023
13 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@mihe mihe deleted the ray-cast-back-faces branch July 16, 2023 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants