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

Setting RigidBody2D to MODE_CHARACTER turns off sleeping #52258

Closed
chucklepie opened this issue Aug 30, 2021 · 1 comment
Closed

Setting RigidBody2D to MODE_CHARACTER turns off sleeping #52258

chucklepie opened this issue Aug 30, 2021 · 1 comment

Comments

@chucklepie
Copy link

chucklepie commented Aug 30, 2021

Godot version

3.3 stable

System information

Linux

Issue description

If a rigidbody2d has sleeping set to true, but you change its mode to MODE_CHARACTER, then sleeping property currently set is bypassed, set to true and the body wakes up.

The manual states states only woken via

  1. another body
  2. apply_impulse or add_force

"...will not calculate forces until woken up by another body through, for example, a collision, or by using the apply_impulse or add_force methods."

If this is not the case, can the documentation be updated please?

Steps to reproduce

  1. Create a rigidbody2d with sleeping set to true
  2. In code change mode to MODE_CHARACTER

Minimal reproduction project

No response

@Calinou
Copy link
Member

Calinou commented Aug 30, 2021

Duplicate of #7996.

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

2 participants