How to block movement and rotation and the enemy along the y axis I use Character Body 3D and Collision Shape 3D how to do it there with the help of code this is my AI enemy who watches the player and kills him

Godot Version

4.2.1

Question

how to block movement and rotation and the enemy along the y axis I use Character Body 3D and Collision Shape 3D how to do it there with the help of code this is my AI enemy who watches the player and kills him

Можно и без кода но хоть как то

You can use PhysicsBody3D > Axis Lock.