0 votes

Some times when my kinematic player jumps on top of a static block, the block drops down one pixel and gets 'stuck' in the floor. This is problematic not just because it looks ugly, but also because its friction with the floor appears to be much higher when it is in its lower position.

How do I prevent it from getting lower than the floor, or how do I release it from the floor as soon as possible? I tried modifying its position and velocity when a collision happens, but I could not fine tune that to get a desirable outcome.

The effect takes place in this gif on the second jump.

enter image description here

Godot version 3.3.2
in Engine by (36 points)

1 Answer

0 votes

It appears that this issue is not related to physics, it is a camera issue instead. I have discovered that the block does not actually move when I jump on it, and with the camera drag margin V setting disabled the issue no longer appears.

by (36 points)
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 [email protected] with your username.