Rapier move_and_slide returning an error?

Godot Version

4.6

Question

I have a 2D platformer that depends on joints for a few things, so I’ve chosen to use the Rapier physics engine for that. However, when I call move_and_slide on a characterbody2D, it returns an error: The normal Vector must be normalized. When printing the floor normal, it shows as 0,0. The problem seems to be with the Rapier extension itself? I was on Godot 4.5 and tried upgrading to 4.6 specifically to fix this to no avail.

A normalized vector must have a length of 1 which you can’t do for a vector2(0.0, 0.0)
Simply put a if clause before it to check if there’s any movement at all and return early before the move_and_slide.

If I don’t do move_and_slide, the character just won’t move, so they get stuck on the 0,0 normal. It’s not that simple unfortunately

upon further experimentation, the problem seems to be solved by turning off Constant Speed on the characterbody2D… I’d still rather be able to have that on, though.