Kinematicbody2D can't jump with Rigidbody2D on top

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kiefciman

Hi. I’m using Godot 3.5.2. I’m making a 2d platformer with a kinematicbody2d as a aplatformer character and several rigidbody2d npc and items. If I have infinite inertia turned off, the character can’t jump if a rigidbody2d item or npc is on top of it regardless of the masses and gravity. This fixes when I turn on infinite inertia, but then tunneling appears.

:bust_in_silhouette: Reply From: aidave

You have to check slide collisions inside of physics_process

Then apply velocity to the rigidbody there.