character_controller_filtering
It is possible to let the character controller ignore some obstacles. This is achieved by configuring the
filter
argument of the KinematicCharacterController::move_shape
method. This QueryFilter
structure is detailed
in the scene query filters section.
warning
If the character-controller is used to move a collider (and the rigid-body it may be attached to) that is present
in the physics scene, the filters must be used to exclude that collider (and that rigid-body) from the set of
obstacles (with QueryFilter::exclude_collider
and QueryFilter::exclude_rigid_body
) to prevent the character from
colliding with itself.