I have a characterbody2d enemy that charges at the characterbody2d player, but when they contact, the enemy just stops at the player. How do I make it so that the enemy can actually push the player around?
(How to make CharacterBody2D push another CharacterBody2D?
Here’s a different forum post with the same idea but they don’t link the video they are referring to and I don’t think replacing the player with a rigid body is a good idea.)
With CharacterBody2D you need to manually adjust its velocity, so you need to check the collision and change the velocity of the pushed object based on that collision, ideally along its normal vector.
See here my little demo, you probably need to adjust the values to make it feel right, but the gist is there.