In Godot4, when a CharacterBody2D is interacting with a RigidBody2D, how do you turn off infinite inertia?

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

In Godot3 the move_and_slide() function had a parameter to turn off infinite inertia. That parameter has been removed in Godot4 but CharacterBodies still seem to interact with RigidBodies as if they have infinite inertia. i can’t seem to find in the docs the new way of turning off infinite inertia. I’m still pretty new to Godot. Does anyone know how to do this or can anyone point me in the right direction? Thanks.

Have you gotten an answer to this question? I’m wondering the same thing

BeMain | 2023-02-25 13:30

2 Likes

Any solution ?

Any big brains out there have a possible solution for this?

I would imagine your collision layer and mask for CharacterBody2D and RigidBody2D are what causes the infinite inertia. Try playing around with that if it does anything.