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 recovery_as_collision to extension binding of _body_test_motion #74707

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

mihe
Copy link
Contributor

@mihe mihe commented Mar 10, 2023

Currently, when implementing support for PhysicsServer3D::body_test_motion from a GDExtension, the recovery_as_collision field of PhysicsServer3D::MotionParameters is not passed on as a parameter to PhysicsServer3DExtension::_body_test_motion, making it impossible to implement full support for things like PhysicsBody3D.move_and_collide or PhysicsBody3D.test_move.

This PR adds that parameter.

@mihe mihe requested a review from a team as a code owner March 10, 2023 08:43
@akien-mga akien-mga modified the milestones: 3.x, 4.1 Mar 10, 2023
@akien-mga akien-mga merged commit 0c59e0c 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