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 pick_ray parameter to extension binding of intersect_ray #74242

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

mihe
Copy link
Contributor

@mihe mihe commented Mar 2, 2023

Currently, when implementing support for 3D physics queries from a GDExtension, the pick_ray field of PhysicsDirectBodyState3D::RayParameters is not passed on as a parameter to PhysicsDirectSpaceState3DExtension::_intersect_ray, making it impossible to implement support for the input_ray_pickable property on CollisionObject3D or the ray_pickable property on SoftBody3D.

This PR adds that parameter.

@akien-mga akien-mga merged commit 4779389 into godotengine:master Mar 10, 2023
@akien-mga
Copy link
Member

Thanks!

@YuriSizov
Copy link
Contributor

I removed the cherry-pick label because this PR breaks compatibility for extensions, and there isn't a strong reason at the moment to justify that for a patch release. GDExtension is still in a beta state, but we should still preserve BC where possible. Jolt seems to be still very much in development, so it probably makes sense for it to target 4.1 as the first stable release to support. We can reconsider this later if there is a push for this to be included in 4.0 as well.

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.

None yet

3 participants