-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Rigidbody2D never sleep if they are "characters" #7996
Comments
Mhh this seems to be meant as a feature, not a bug :P //Body2DSW::sleep_test
else if (mode==Physics2DServer::BODY_MODE_CHARACTER)
return !active; // characters and kinematic bodies don't sleep unless asked to sleep |
why? if i want to make them sleep by manual i just can switch off "can sleep" func |
Yes by design characters should not sleep unless they are explicit asked to, since quite often their logic is processed inside |
Yeah, this doesn't make any sense to me either. As I understand it, even if I think This definitely needs to be documented better. |
See godotengine#7996. (cherry picked from commit 5fbf709)
This was resolved in 4.0 as part of #48908. The change can't be backported to |
Operating system or device - Godot version:
Godot - 2.1 or 2.0/ windows 7
Issue description:
I put some 2d Rigidbodies with "character" mode in scene, they have no any forces applied to them, but debugger show this objects as "active" (with "rigid" mode they sleep and become non active just fine)
Steps to reproduce:
create RigidBody2D with Character mode and zero gravity, watch in monitoring window how it not sleep. Then change mode on Rigid and watch youre have -1 active body
The text was updated successfully, but these errors were encountered: