How does the PhysicsServer2D generate a physical node that rebounds when encountering a wall

Godot Version

4.2

Question

You can refer to this code for reference.

CharacterBody2D can this
var collide : KinematicCollision2D=move_and_collide(velocity)

if collide :
#print(collide.get_collider_rid())
var collide_direction = player_direction.bounce(collide.get_normal())

However, I’m not sure how to use a PhysicsServer2D node.

I sincerely hope that an expert can solve my doubts. I would be extremely grateful.