0 votes

Hi, I'm trying to create a basic 3D game for a game jam to test my skills. It is a game where the player (a ball), a kinematic body, rolls around a platform that is a rigid body. the platform is balanced on a "pole" that is a static body. Points are won for how long the player can stay on the platform without falling off. However, whenever the player spawns onto the platform, it kinda glitches through and lands on the pole below. The platform then starts vibrating like it's trying to free itself. The rigid body wasn't interacting with the kinematic body as a solid object would. Does anyone have similar problems and how did you solve it?

in Engine by (15 points)

1 Answer

+1 vote
Best answer

When you move a kinematic body, by default the infinite_intertia parameter of the move method is true. This makes kinematics push rigids without taking physics into account. If you use false there, you'll see the behavior you want.

See KinematicBody documentation for details.

For a more in depth discussion about this see:

by (20,475 points)
selected by

Thank you a lot. I'll go and try it out now. Thou, is it possible to give an example in code? Thanks.

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