0 votes

If I use my kinematicbody2d to completely stop a rigidbody2d's decent, then slide out from under it, the rigidbody no longer seems to recognize gravity. As soon as I tap it, gravity comes back. Can anyone tell me what I'm doing wrong here?

I'm using moveandcollide for the Kinematicbody and everything else is standard physics body settings.


Godot version 3.2.3
in Engine by (28 points)

it's a bit hard to guess what's happening without knowing what other parameters are at play.
But, during run time, on your [scene tab], you can click [Remote] and click on the rigidbody2d and inspect it's properties. You can check the sleeping properties, gravity, etc.. and see if something is preventing your rigidbody2d from falling.
You can also turn on [visible collision shapes] under [Debug]

I started over with a new scene and didn't have the same issue. My guess is that I resized the whole node rather than changing the collision shape extends and that caused a whole bunch of funky stuff to happen. I'm being extra careful that I don't do that this time.

I'll definitely go back and try your advice.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.