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

Disabling a RigidBody3D node connected to a Joint causes a crash #75522

Open
Frozenreflex opened this issue Mar 31, 2023 · 3 comments
Open

Disabling a RigidBody3D node connected to a Joint causes a crash #75522

Frozenreflex opened this issue Mar 31, 2023 · 3 comments

Comments

@Frozenreflex
Copy link

Godot version

v4.0.1.stable.mono.official.cacf49999

System information

Linux Mint

Issue description

Setting a RigidBody3D's process mode to Disabled while it is connected with a joint, on either end, either in the inspector or with code, will crash (whenever it gets set to disabled, or instantly on run when set in inspector) with no error outputs. I haven't tested 2D nodes.

Steps to reproduce

Create two RigidBody3Ds, connect them with a PinJoint3D, set the processing mode on one of them to disabled, try to run, crash.

Minimal reproduction project

N/A

@Calinou
Copy link
Member

Calinou commented Apr 1, 2023

@Frozenreflex Please upload a minimal reproduction project to make this easier to troubleshoot.

@Frozenreflex
Copy link
Author

GodotBug.zip

@Occalepsus
Copy link
Contributor

Hi! What would the expected behaviour of such a thing? Should the joint consider it only has one body attached? Should it disable too and leave the other body do its own things?
I have a first fix so that the crash does not happen, but the behaviour of the joint connected to a body and a disabled one is weird, so i would like to know how i should fix that.

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

No branches or pull requests

3 participants