### Godot version

Godot 4 Beta 15 and Beta14

### System information

Windows 11, RTX3070, Vulkan

### Issue description

Hi. I notices that snap feature or SeparationRayShape3D is broken since Beta 14. FYI Beta 13 is working just fine. 
Since beta 14 , the character will slowly pushed into the ground and bounces back up and continuously will do so. Beta 13 does not have this behavior.

### Steps to reproduce

1)Create empty scene
2)Create ground (StaticBody3D with collision)
3)Create player(CharacterBody3D, with two CollisionShape3Ds . (1- CollisionShape3D with capsule collision, 2-CollisionShape3D with SeparationRayShape3D below collision no1 and pointing to the ground or pointing below the character)
4) Add the template script to the player (the characterbody3d)
5)Add camera3d ortho view for better seeing the problem
6)Run

### Minimal reproduction project

[TestSnapBug.zip](https://github.com/godotengine/godot/files/10505186/TestSnapBug.zip)


#include "godot_collision_solver_3d.h"
#include "godot_collision_solver_3d_sat.h"
#include "godot_soft_body_3d.h"
#include "gjk_epa.h"
#define collision_solver sat_calculate_penetration
bool GodotCollisionSolver3D::solve_static_world_boundary(const GodotShape3D *p_shape_A, const Transform3D &p_transform_A, const GodotShape3D *p_shape_B, const Transform3D &p_transform_B, CallbackResult p_result_callback, void *p_userdata, bool p_swap_result, real_t p_margin) {