Godot Version
4.3 stable
Question
How to detect on what side (left or right) a CharacterBody2D is colliding when is colliding with a wall?
For example, if is_on_wall() is true then print on which side is colliding:
extends CharacterBody2D
func _physics_process(delta: float) -> void:
# ... CODE ...
if is_on_wall():
print( On which side is the wall that is colliding with )
# ... CODE ...