CharacterBody3D not moving with move_and_slide in Godot 4.1

I’m trying to move a CharacterBody3D using move_and_slide() in Godot 4.1, but it doesn’t move at all.
I have:

Set up a scene with CharacterBody3D, MeshInstance3D, and CollisionShape3D

Wrote a GDScript with move_and_slide(velocity) in _physics_process()

Normalized direction, calculated velocity

Mapped inputs in Project Settings

No errors are shown, but the character doesn’t move. What could be the issue?

move_and_slide doesn’t take any arguments, are you sure there are no errors? Could you paste your code?

1 Like