0 votes

I am working on a simple 2D platformer. I need the main character to be able to throw a ball and then stand on it to reach a higher area. However, when the character tries to jump on the ball, it sinks into the ground, until the character moves, and the ball rises back up. I am using a basic moveandslide command for the kinematicbody, and nothing has been added to the Rigidbody. How can I allow the kinematic character to stand on the block?
The Jump Test

asked Jun 2, 2019 in Engine by nerdbaron (19 points)

1 Answer

0 votes
Best answer

I found the answer! For anyone in the future with the same issue, I got it to work by setting infiniteInertia to false in the MoveAndSlide method. If you still want to be able to push the rigidbody around afterwards, you can play with the info from the GetSlideCollision method to get something set up.

answered Jun 4, 2019 by nerdbaron (19 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 How to use this Q&A? before posting your first questions.