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

Activate Body(2D)SW when switching to rigid or character mode. #32845

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

madmiraal
Copy link
Contributor

This patch calls activate(true) in BodySW and Body2DSW when the mode is set to BODY_MODE_RIGID or BODY_MODE_CHARACTER.

When setting the mode of a RigidBody2D or RigidBody with GodotPhysics to MODE_RIGID or MODE_CHARACTER, the RigidBody(2D) should stop sleeping; especially if the RigidBody(2D)'s "Can Sleep" is disabled.

Fixes #25738

@akien-mga akien-mga added this to the 3.2 milestone Oct 24, 2019
@akien-mga akien-mga merged commit 5cdecb8 into godotengine:master Oct 25, 2019
@akien-mga
Copy link
Member

Thanks!

@madmiraal madmiraal deleted the rigidbody-mode-change branch October 26, 2019 06:22
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.

RigidBody2d kinematic mode switch stuck in sleep when transform has "square" rotation
3 participants