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

in Engine by (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.

by (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 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.